catalogue module detail display
Posted: Thu Sep 08, 2011 10:58 pm
CMSMS version 1.9.4.2
I have been using CTLModulemaker to create a couple of catalogues. The catalogues work and I can show both the list of items and the details of each item. However, I am having trouble directing where the detail is shown. I have tried using detailpage="" in the smarty tag to show details of an item. The detail still shows in the same page as the list details even when I specify a different page alias. I did something similar in the news module and no probs. Also, on one of the catalogues, I want to show the detail on the same page but in a different content block when an item in the list is clicked for more detail.
Below is the code for the more basic catalogue and its detail template:
{assign var="item" value=$itemlist[0]}
{$item->name->Label()}: {$item->name}<br/>
{$item->definition->Label()}: {$item->definition}<br/>
cheers WD
I have been using CTLModulemaker to create a couple of catalogues. The catalogues work and I can show both the list of items and the details of each item. However, I am having trouble directing where the detail is shown. I have tried using detailpage="" in the smarty tag to show details of an item. The detail still shows in the same page as the list details even when I specify a different page alias. I did something similar in the news module and no probs. Also, on one of the catalogues, I want to show the detail on the same page but in a different content block when an item in the list is clicked for more detail.
Below is the code for the more basic catalogue and its detail template:
{assign var="item" value=$itemlist[0]}
{$item->name->Label()}: {$item->name}<br/>
{$item->definition->Label()}: {$item->definition}<br/>
cheers WD