Page 1 of 1

LISE (ListIt2) item details values in Page Template

Posted: Mon Jan 25, 2016 11:25 pm
by ooopie
Hi -

I'm running the latest LISE module in CMSMS 2.1.1

Is there a way to use a LISE item detail values in my Core::Page Template?

For example, I would like the $item->title to replace the page title in the META <title> tag as well as within a <h1> tag in the page template.

I would also like the $item->title to show up in my breadcrumbs Navigator.

How can I access the LISE $item from the page template?

Thanks!
-jon

Re: LISE (ListIt2) item details values in Page Template

Posted: Tue Jan 26, 2016 9:21 am
by velden
There has been a lot of questions about this subject in the forums though it's not specifically about LISE. It's a general question.

In your (LISE) detail template assign specific values to smarty variables and use them LATER in your page template.

Note that by default the page template's <head> section is processed later than the </__body> section.
Further important to note that in CMSMS 2.x Smarty variable scopes come into play

Very useful information:
http://www.cmscanbesimple.org/blog/smar ... e-examples
(buy Rolf a cup of coffee :) )

Re: LISE (ListIt2) item details values in Page Template

Posted: Tue Jan 26, 2016 4:17 pm
by ooopie
Thank you greatly. This is my first site with CMSMS 2 and the smarty variable scope thing got me.

Good info. Cup of coffee bought :)

Re: LISE (ListIt2) item details values in Page Template

Posted: Tue Jan 26, 2016 5:55 pm
by Rolf
ooopie wrote:Good info. Cup of coffee bought :)
Thank you!