Page 1 of 1

catalogue module detail display

Posted: Thu Sep 08, 2011 10:58 pm
by whiteduck
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

Re: catalogue module detail display

Posted: Fri Sep 09, 2011 10:04 pm
by klenkes
You are right.
The parameter detailpage=" " doesn't seem to work.

I don't think that you can specify a content block other than content_en which is the default content block.
If you call your module in a second content block you can give the parameter inline="1" and the details open in the second block.(means same one)
But if you call your module in the default content block you cannot show your details in another block.

At least not to my knowledge.

Re: catalogue module detail display

Posted: Fri Sep 09, 2011 10:39 pm
by whiteduck
thanks for your advice
cheers WD