CMS Made Simple Forums
https://forum.cmsmadesimple.org/

News module "See more" link to External Webpage?
https://forum.cmsmadesimple.org/viewtopic.php?f=7&t=79413
Page 1 of 1

Author:  Sendlingur [ Mon Nov 19, 2018 2:14 pm ]
Post subject:  News module "See more" link to External Webpage?

Hi all I've one question.

Is it possible to somehow use the "See more" link to go to an external webpage instead of going to the detailpage?

And off course without making a new template for each news item.

thanks in advance.

Author:  DIGI3 [ Mon Nov 19, 2018 3:45 pm ]
Post subject:  Re: News module "See more" link to External Webpage?

Add another field for external link (or use the 'extra' field), then in your template just check for it. Something like:

\$1:
{if $mynewfield}<a href="{$mynewfield}" target="_blank" rel="noreferrer" />{else}{$morelink}{/if}

Page 1 of 1 All times are UTC
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group
http://www.phpbb.com/