Page 1 of 1
[solved] NEWS MODULE - Change text of "return" url?
Posted: Thu Sep 03, 2009 1:53 pm
by beherenow_uk
Hi all,
I am using CMSMS 1.6.4 and News 2.10.2
I'm really stuck. I can't find where to change the text of the $return_url in the detail template of the News module. I actually want to change the text to say "Return to news items" and I want to style a box around it too.
Can this be done? If so, how? Please help I would appreciate any help!!
Thanks, Karl
Re: NEWS MODULE - Change text of "return" url?
Posted: Thu Sep 03, 2009 2:13 pm
by Jean le Chauve
line 141 of News/lang/en_US.php
Code: Select all
$lang['news_return'] = '<span class=\"return\">Return to news items</span>';
Stylize with css
span.return {border:solid #CCC 1px;}
Re: NEWS MODULE - Change text of "return" url?
Posted: Thu Sep 03, 2009 3:18 pm
by beherenow_uk
That is wonderful! Thank you sooo much!!
I would have never have known that without your post.
Thanks again - you saved my bacon!
Re: [solved] NEWS MODULE - Change text of "return" url?
Posted: Thu Sep 03, 2009 8:02 pm
by chuccaville
Jean, nice! I just started with CMSMS last night.
Ten minutes ago, I stumbled over the same issue as Karl.
This forum is impressive!

Re: [solved] NEWS MODULE - Change text of "return" url?
Posted: Thu Sep 03, 2009 8:19 pm
by calguy1000
a) do a search for module_custom
(or check out my blog)... that way you don't have to modify core files.
b) remind me to fix this for 1.7
it should just be a url that the template then makes a link out of.
Re: [solved] NEWS MODULE - Change text of "return" url?
Posted: Thu Sep 03, 2009 8:21 pm
by Fraserm
You should start taking a note of these things somewhere safe.
I don't know what impact a fix of Calguy's would have, but in the normal course of events, an upgrade would wipe out that customization.