inline module inside {content} with a different $action?
Posted: Wed Apr 25, 2012 1:43 pm
Hi!
I have a template with {content}, a content page with a layout which in it load a module using {cms_module module='sbCarriere'}. The module loads and it works. In DoAction(), $action == "default".
I'd like to use the same content page with a different action for the module.
I tryed:
?page=carriere&action=myaction -> same as "default"
?page=carriere&id=test&action=testmyaction -> empty {content}
?page=carriere&mact=sbCarriere,cntnt01,myaction,1 -> shows only the module in {content}
I could override $action in DoAction() if I see a variable in $_GET, but is there an "official" way to do this?
Thanks!
I have a template with {content}, a content page with a layout which in it load a module using {cms_module module='sbCarriere'}. The module loads and it works. In DoAction(), $action == "default".
I'd like to use the same content page with a different action for the module.
I tryed:
?page=carriere&action=myaction -> same as "default"
?page=carriere&id=test&action=testmyaction -> empty {content}
?page=carriere&mact=sbCarriere,cntnt01,myaction,1 -> shows only the module in {content}
I could override $action in DoAction() if I see a variable in $_GET, but is there an "official" way to do this?
Thanks!