Page 1 of 1

LISE Categories

Posted: Thu May 25, 2017 1:59 am
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

Re: LISE Categories

Posted: Thu May 25, 2017 1:37 pm
by Jo Morg
Look in the default templates, there is sample code in them for that.

Re: LISE Categories

Posted: Thu May 25, 2017 8:54 pm
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

Re: LISE Categories

Posted: Thu May 25, 2017 9:41 pm
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!