Page 1 of 1

Opening a CMS_Module via a clickable link

Posted: Tue Aug 29, 2017 5:50 am
by Spinacia
Hi,

Instead of embedding a single cms_module tag in a content page and then loading that page from a URL, I am wondering if it is possible to directly open a cms_module tag via a clickable link...

Something along the line of href="{cms_module module=MyModule}"

This could save a lot of work.

Please help if you have any suggestions.

Thanks.

Re: Opening a CMS_Module via a clickable link

Posted: Tue Aug 29, 2017 7:54 am
by velden

Re: Opening a CMS_Module via a clickable link

Posted: Tue Aug 29, 2017 8:07 am
by Spinacia

Code: Select all

action - (required) - The action name to generate a URL to
Thanks Velden.

Are there any examples I could see of what constitutes a valid action or more information on the action parameter?

Thanks.

Re: Opening a CMS_Module via a clickable link

Posted: Tue Aug 29, 2017 8:10 am
by velden
It's the action parameter of the specific module you're linking to.

E.g. for News module it's (from the help):
(optional) action="default" - Override the default action. Possible values are:

"detail" - to display a specified articleid in detail mode.
"default" - to display the summary view
"fesubmit" - Deprecated to display the frontend form for allowing users to submit news articles on the front end. Add the {cms_init_editor} tag in the metadata section to initialize the selected WYSIWYG editor. (Site Admin >> Global Settings)
"browsecat" - to display a browsable category list.