LISE Categories

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
design729
New Member
New Member
Posts: 6
Joined: Thu May 25, 2017 1:49 am

LISE Categories

Post by design729 »

Using the current version of both CMSMS and LISE.
Using LISE I am trying to echo the Category name and alias into my summary template.
{foreach from=$items item=item}
<h3>{$item->title}</h3>
<p>{$item->hotel_location}</p>
{Category alias and name of this item would go here}
{/foreach}
I have trawled the internet for a solution to this without any luck.
Thanks you for giving this question your attention.
Best,
Neil
User avatar
Jo Morg
Dev Team Member
Dev Team Member
Posts: 1967
Joined: Mon Jan 29, 2007 4:47 pm

Re: LISE Categories

Post by Jo Morg »

Look in the default templates, there is sample code in them for that.
"There are 10 types of people in this world, those who understand binary... and those who don't."
* by the way: English is NOT my native language (sorry for any mistakes...).
Code of Condut | CMSMS Docs | Help Support CMSMS
My developer Page on the Forge
GeekMoot 2015 in Ghent, Belgium: I was there!
GeekMoot 2016 in Leicester, UK: I was there!
DevMoot 2023 in Cynwyd, Wales: I was there!
design729
New Member
New Member
Posts: 6
Joined: Thu May 25, 2017 1:49 am

Re: LISE Categories

Post by design729 »

Hi Jo,
this was the first place I looked but found no solution to placing my specific Category title in a summary template.
Best,
Neil
design729
New Member
New Member
Posts: 6
Joined: Thu May 25, 2017 1:49 am

Re: LISE Categories

Post by design729 »

A little progress.
Reviewing the supplied templates I have figured out how to display the full list of categories inside my summary template.
I am still hoping to find out how to add the Category Name to each item in my loop of summary items.
Summary Template code so far:
{if $items|@count > 0}
<div>{LISEHotelManager action="category" }</div>
<ul class="booking-list">
{foreach from=$items item=item}
<h2>{Category Value to go here}</h2>
<h5 class="booking-item-title">{$item->title}</h5>
<p>{$item->hotel_address}</p>
<p>{$item->Description}</p>
{/foreach}
{/if}

Thank you!
Post Reply

Return to “Modules/Add-Ons”