CTLModuleMaker (again) prev/next links in detail view
Posted: Mon Dec 27, 2010 1:19 pm
Having previous/next links works when calling
in the contents of a page, just fine, using $paginator in the details template.
However, when displaying a list view of the items with a link to the detail as so:
the paginator doesn't work on the resulting details page, as the wrong parameters are being passed in the URL.
I've spent hours digging through the code, but I'm still barely getting to grips with this object oriented stuff, and I'm scared of breaking things...
Extensive Googling implies that there used to be a nice easy way of dealing with this using {$previous_item->detaillink} in the detail template, but I think this might have disappeared as of CTLMM version 2.0?
Or am I missing something? Pointers appreciated
(CMSMS 1.9.2, CTLMM 2.0)
Code: Select all
{cms_module module="xxxx" what="yyyy" orderby="created" nbperpage="1"}
However, when displaying a list view of the items with a link to the detail as so:
Code: Select all
<a href="{$item->url}">{$item->thumb->fileobject}</a>
I've spent hours digging through the code, but I'm still barely getting to grips with this object oriented stuff, and I'm scared of breaking things...
Extensive Googling implies that there used to be a nice easy way of dealing with this using {$previous_item->detaillink} in the detail template, but I think this might have disappeared as of CTLMM version 2.0?
Or am I missing something? Pointers appreciated

(CMSMS 1.9.2, CTLMM 2.0)