News module only the link to "more"

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
janvl
Power Poster
Power Poster
Posts: 967
Joined: Wed Aug 13, 2008 10:57 am

News module only the link to "more"

Post by janvl »

Hi,

i have made a site where i use the newsmodule and at the bottom of the summary-template there is:
{$entry->morelink}

Now this is a complete link with the anchor-tags.
Is there a tag that will only represent the link without the anchortags?

I want to make an image the "more-link".
For now i have copied the Link and after i put in a news-item , I edit the html of the summary-part so the image is clickable.

Regards,
Jan
User avatar
PinkElephant
Forum Members
Forum Members
Posts: 171
Joined: Fri Feb 06, 2009 2:08 pm

Re: News module only the link to "more"

Post by PinkElephant »

Hi,

The (Summary) template help reads...
detail_url (string) - The URL to the detail view of the article.

link (string) (deprecated) - The URL to the detail view of the article.
titlelink (string) (deprecated) - A link (usign [sic] the article title as the text) to the detail view of the article.
morelink (string) (deprecated) - A link (using a translation of the word "more" as the text), to the detail view of the article.
moreurl (string) (deprecated) - A URL to the detail view of the article.
HTH
janvl
Power Poster
Power Poster
Posts: 967
Joined: Wed Aug 13, 2008 10:57 am

Re: News module only the link to "more"

Post by janvl »

Thanks,

i found : $entry->moreurl

could you point to the "The (Summary) template help".
I searched for the helptexts but as you can see this was late in the evening.
I just searched for it and somehow oversee where that is.

I have everything working on this new site, but using the right tag makes life easier . . :-)

Regards,
Jan
User avatar
PinkElephant
Forum Members
Forum Members
Posts: 171
Joined: Fri Feb 06, 2009 2:08 pm

Re: News module only the link to "more"

Post by PinkElephant »

janvl wrote: Tue Jul 09, 2024 11:12 am "The (Summary) template help". ... somehow oversee where that is.
Yes, it's a bit hidden, especially if you use file based templates. There may be other routes but if you start a new template there's a 'Template Help' link top-right of the template content textarea.
janvl
Power Poster
Power Poster
Posts: 967
Joined: Wed Aug 13, 2008 10:57 am

Re: News module only the link to "more"

Post by janvl »

Thanks,

i found it! This is realy helpful!
I will change the template straight away.

Regards,
Jan
Post Reply

Return to “Modules/Add-Ons”