Remove brackets ( [] ) from the More link in the news module

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
anthony
Forum Members
Forum Members
Posts: 37
Joined: Thu Jun 22, 2006 12:50 am

Remove brackets ( [] ) from the More link in the news module

Post by anthony »

Is it possible to remove the brackets that surround the "more" link in the news module?

I noticed that even if I change the moretext to be something different, CMSMS always puts brackets around the link.

For example, I have moretext set to be: More . . . but CMSMS writes it to the page as [More . . .].  Need to get rid of those darn brackets if possible.

Many thanks in advance.
cyberman

Re: Remove brackets ( [] ) from the More link in the news module

Post by cyberman »

Please go to News admin panel and there to Summary template. Change this line

Code: Select all

	<div class="NewsSummaryMorelink">
		[color=red][[/color]{$entry->morelink}[color=red]][/color]
	</div>
to this

{$entry->morelink}
That's all  ;) ...
anthony
Forum Members
Forum Members
Posts: 37
Joined: Thu Jun 22, 2006 12:50 am

Re: Remove brackets ( [] ) from the More link in the news module

Post by anthony »

cyberman wrote: Please go to News admin panel and there to Summary template. Change this line

Code: Select all

	<div class="NewsSummaryMorelink">
		[color=red][[/color]{$entry->morelink}[color=red]][/color]
	</div>
to this

{$entry->morelink}
That's all  ;) ...
Holy, don't I feel stupid lol.  I am not sure how I missed that.
petrangr

Re: Remove brackets ( [] ) from the More link in the news module

Post by petrangr »

In news module its possible to define your text for the more link, can it be done for the return as well?
User avatar
Nullig
Power Poster
Power Poster
Posts: 2380
Joined: Fri Feb 02, 2007 4:31 pm

Re: Remove brackets ( [] ) from the More link in the news module

Post by Nullig »

I believe you'd change it in the language file.

Look for the "morelink" entry.

Nullig
anthony
Forum Members
Forum Members
Posts: 37
Joined: Thu Jun 22, 2006 12:50 am

Re: Remove brackets ( [] ) from the More link in the news module

Post by anthony »

This is actually on the news help page (admin/listmodules.php?action=showmodulehelp&module=News)
(optional) moretext="more..." - Text to display at the end of a news item if it goes over the summary length. Defaults to "more..."
Post Reply

Return to “CMSMS Core”