LISE (ListIt2) item details values in Page Template

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
ooopie
Forum Members
Forum Members
Posts: 10
Joined: Mon Dec 19, 2011 7:19 pm

LISE (ListIt2) item details values in Page Template

Post 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
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

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

Post 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 :) )
ooopie
Forum Members
Forum Members
Posts: 10
Joined: Mon Dec 19, 2011 7:19 pm

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

Post 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 :)
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

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

Post by Rolf »

ooopie wrote:Good info. Cup of coffee bought :)
Thank you!
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Post Reply

Return to “Modules/Add-Ons”