Page 1 of 1
News module only the link to "more"
Posted: Sun Jul 07, 2024 9:29 pm
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
Re: News module only the link to "more"
Posted: Tue Jul 09, 2024 9:29 am
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
Re: News module only the link to "more"
Posted: Tue Jul 09, 2024 11:12 am
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
Re: News module only the link to "more"
Posted: Tue Jul 09, 2024 12:00 pm
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.
Re: News module only the link to "more"
Posted: Tue Jul 09, 2024 12:14 pm
by janvl
Thanks,
i found it! This is realy helpful!
I will change the template straight away.
Regards,
Jan