Page 1 of 1

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

Posted: Thu Jan 11, 2007 4:32 am
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.

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

Posted: Thu Jan 11, 2007 5:12 am
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  ;) ...

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

Posted: Thu Jan 11, 2007 7:47 pm
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.

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

Posted: Thu Mar 22, 2007 7:46 pm
by petrangr
In news module its possible to define your text for the more link, can it be done for the return as well?

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

Posted: Thu Mar 22, 2007 9:32 pm
by Nullig
I believe you'd change it in the language file.

Look for the "morelink" entry.

Nullig

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

Posted: Thu Mar 22, 2007 9:43 pm
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..."