Listit2 - help with summary template

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Locked
stevegos

Listit2 - help with summary template

Post by stevegos »

Hi

I have been trying to fix this all day and getting no where with the Listit2 module.

I am modifying the default summary template and need to output 4 fields from my list item which are title, description, testimonial, photogallery.

I wish to call the fields separately as I wish to style them differently and the photogallery field is a Gallery module tag such as {Gallery dir='test-gallery1'} which I know needs some extra code eval var= to process the tag rather than simply output the actual tag.

I just cannot work out how to get the output correct. I tried the following in the foreach else loop which outputs the correct fields but duplicates everything 4 times:

{$item->description|cms_escape}

Also tried {$item->fielddefs.position.value|cms_escape} but made no difference.

Also I can't seem to output the Gallery tag.

I am using latest version of CMSMS and Listit2.

All help greatly appreciated.

Thanks, Steve
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: Listit2 - help with summary template

Post by Dr.CSS »

Don't use the foreach loop...
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: Listit2 - help with summary template

Post by Rolf »

What is your whole template?
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
Locked

Return to “Modules/Add-Ons”