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:
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} {$prevpage}
{/if}
{foreach from=$pagelinks item=page}
{$page->link}
{/foreach}
{if $pagenumber < $pagecount}
{$nextpage} {$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}