Page 1 of 1

LISE module detailspage not working

Posted: Sat May 13, 2017 7:00 pm
by jobravo
Hi, I'm currently trying to display a few items from a LISEinstance using a summarytemplate in CMSMS2.x on the front page of my website.

Problem 1: Each {$item->url} successfully leads to the correct detailspage however only shows the specific item's details when I select the "Display details inline (replaces module tag instead of {content}):" under LISEinstance options.

Problem 2: In another page displaying all of the items from this same LISEinstance, I am using another summarytemplate with pagination. However when I DO NOT select the option mentioned above, the previous subset of items (items from the prior page) still shows up when going through the pages.

Here is how I am calling the first summarytemplate:

Code: Select all

{LISEinstance template_detail="default" template_summary="front_page_summary" orderby="custom_date|ASC" pagelimit="4"}
Here is how I am calling from the other page showing all items:

Code: Select all

{LISEinstance pagelimit="3" template_summary="events-all" orderby='custom_date|ASC' }

Thank you so much for your time in advance!

Re: LISE module detailspage not working

Posted: Sun May 14, 2017 10:30 am
by velden
Seems related to this: viewtopic.php?f=20&t=76582&p=333169#p333169

Try to understand how and where CMSMS displays the results of the module.

We'd probably need to see the code of the user PAGE template. And you need to tell us where you enter the {LISE...} tag(s)

Re: LISE module detailspage not working

Posted: Sun May 14, 2017 9:17 pm
by jobravo
velden wrote:Seems related to this: viewtopic.php?f=20&t=76582&p=333169#p333169

Try to understand how and where CMSMS displays the results of the module.

We'd probably need to see the code of the user PAGE template. And you need to tell us where you enter the {LISE...} tag(s)
Thanks a lot for your reply and your help so far!

Here's the code in the main page where I'm calling a summary template to display the most recent items:

Code: Select all

{LISEinstance template_detail="default"  template_summary="front_page_summary" orderby="custom_event_date|ASC" pagelimit="4"} 
From the main page, users can click on more for each item, the links are in the front_page_summary LISEinstance template:

Code: Select all

<a href="{$item->url}">More</a>
Then this should lead to the details page:

Code: Select all

            <div class="col-md-9">
                <h1 class="page-header">Event Details</h1>
                {content}
            </div>
I think the problem is when I select the option in LISEinstance to replace the {LISE...} tag instead of the {content} tag. In the details page there is no {LISE..} tag, so obviously the details for the specific item won't appear. But I need to select this option so that in another page my items can be paginated properly.

Here's the code in another page that displays all items that I am using that requires pagination, it's a summary template in the LISEinstance:

Code: Select all

<div class="row divider_row">
    </div>
{if $items|@count > 0}

	{if $pagecount > 1}
	<!-- pagination -->
	<p>
		{if $pagenumber > 1}
			{$firstpage}&nbsp;{$prevpage}&nbsp;
		{/if}
			{foreach from=$pagelinks item=page}
				{$page->link}
			{/foreach}
		{if $pagenumber < $pagecount}
			&nbsp;{$nextpage}&nbsp;{$lastpage}
		{/if}
	</p>
	<!-- pagination //-->
	{/if}
	
	<!-- items -->
         {foreach from=$items item=item}
<div class="row">
           
<!--event-->
<div class="row">
<div class="panel panel-default event">
  <div class="item">
    <div class="rsvp col-xs-2 col-sm-2">
      <i>{$item->event_date|date_format:'%e'}</i>
      <i class="month">{$item->event_date|date_format:"%b"}</i>
      <i class="time">{$item->event_date|date_format:"%H:%M"}</i>
    </div>
    <div class="info col-xs-8 col-sm-7">
      <div class="event-info">
      <h4>{$item->title}</h4>
      {if isset($item->description)}
      <p class="description">{$item->description}</p>
      {/if}
      <p><a href="{$item->url}">Read More</a> </p>
      </div>
    </div>
  </div>
</div>
<!--event-->
</div>
</div>
    {/foreach}


{/if}