[solved] Using {module_action_link} with News module

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
gocreative
Power Poster
Power Poster
Posts: 265
Joined: Mon Mar 14, 2011 1:16 am
Location: Brisbane, Australia

[solved] Using {module_action_link} with News module

Post by gocreative »

I am using the News module and have created a custom field which allows users to enter text for a 'Read more' link. In a a GCB, I'm using the following code:

Code: Select all

<a href='{module_action_link module='News' action='detail' urlonly='1' articleid=$entry->id}' title=$entry->fieldsbyname.More_button_text->value</a>
While the link functions, it doesn't use the default detail page. I've obviously tried adding: detailpage='news', however this had no effect but it does work with other News items when displayed via {News}.

Can anyone steer me in the right direction? Thanks in advance.
Last edited by gocreative on Sat Apr 21, 2012 11:05 am, edited 1 time in total.
Peciura

Re: Using {module_action_link} with News module

Post by Peciura »

try parameter "page":

Code: Select all

{module_action_link  ... page='news' ...}
gocreative
Power Poster
Power Poster
Posts: 265
Joined: Mon Mar 14, 2011 1:16 am
Location: Brisbane, Australia

Re: Using {module_action_link} with News module

Post by gocreative »

Thanks - that did the trick. And so simple :)
User avatar
M@rtijn
Power Poster
Power Poster
Posts: 706
Joined: Sat Nov 14, 2009 4:54 pm
Location: the Netherlands

Re: Using {module_action_link} with News module

Post by M@rtijn »

So this one is solved?

Please add [solved] in front of the title of your first post in this topic, thank you!
Make your community a better place!
Post Reply

Return to “Modules/Add-Ons”