Opening a CMS_Module via a clickable link

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Spinacia
New Member
New Member
Posts: 8
Joined: Sat Dec 22, 2012 3:54 pm

Opening a CMS_Module via a clickable link

Post 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.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Opening a CMS_Module via a clickable link

Post by velden »

Spinacia
New Member
New Member
Posts: 8
Joined: Sat Dec 22, 2012 3:54 pm

Re: Opening a CMS_Module via a clickable link

Post 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.
User avatar
velden
Dev Team Member
Dev Team Member
Posts: 3497
Joined: Mon Nov 28, 2011 9:29 am

Re: Opening a CMS_Module via a clickable link

Post 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.
Post Reply

Return to “CMSMS Core”