Creating multiple content in a module
Posted: Tue Mar 17, 2009 12:23 am
I want my module to create multiple pieces of content on a linked page, to be output by various content blocks in my detailpage.
I think I've worked out that the $returnid on the CreateLink() needs to be the id of the detail page I want to use for output, but by default my output goes into {content}.
How do I create several contents? I assume I have to assign them to Smarty variables, but then can I get at them?
I'm sure I've seen something by Ted or CG about this, but I can't find it after an hour of searcching...
Also/alternatively... How can I get at the page URL params within my module - e.g. given
$link = CreateLink($id, 'action1', $returnid, 'Action 1', array('pid'=>$pid));
and on the action1 page a call of
{cms_module module='MyModule' action='action2'}
how in action.action2.php can I get the value of pid?
Thanks in advance, Brian
I think I've worked out that the $returnid on the CreateLink() needs to be the id of the detail page I want to use for output, but by default my output goes into {content}.
How do I create several contents? I assume I have to assign them to Smarty variables, but then can I get at them?
I'm sure I've seen something by Ted or CG about this, but I can't find it after an hour of searcching...
Also/alternatively... How can I get at the page URL params within my module - e.g. given
$link = CreateLink($id, 'action1', $returnid, 'Action 1', array('pid'=>$pid));
and on the action1 page a call of
{cms_module module='MyModule' action='action2'}
how in action.action2.php can I get the value of pid?
Thanks in advance, Brian