[solved] NEWS MODULE - Change text of "return" url?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
beherenow_uk
Forum Members
Forum Members
Posts: 103
Joined: Fri Nov 28, 2008 11:26 am

[solved] NEWS MODULE - Change text of "return" url?

Post 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
Last edited by beherenow_uk on Thu Sep 03, 2009 3:18 pm, edited 1 time in total.
Jean le Chauve

Re: NEWS MODULE - Change text of "return" url?

Post 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;}
beherenow_uk
Forum Members
Forum Members
Posts: 103
Joined: Fri Nov 28, 2008 11:26 am

Re: NEWS MODULE - Change text of "return" url?

Post 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!
User avatar
chuccaville
Forum Members
Forum Members
Posts: 12
Joined: Thu Sep 03, 2009 6:35 pm

Re: [solved] NEWS MODULE - Change text of "return" url?

Post 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!

;-)
calguy1000
Support Guru
Support Guru
Posts: 8169
Joined: Tue Oct 19, 2004 6:44 pm

Re: [solved] NEWS MODULE - Change text of "return" url?

Post 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.
Follow me on twitter
Please post system information from "Extensions >> System Information" (there is a bbcode option) on all posts asking for assistance.
--------------------
If you can't bother explaining your problem well, you shouldn't expect much in the way of assistance.
Fraserm
Forum Members
Forum Members
Posts: 107
Joined: Wed Mar 04, 2009 2:27 pm

Re: [solved] NEWS MODULE - Change text of "return" url?

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

Return to “Modules/Add-Ons”