Page 1 of 1

Link from content page to news article?

Posted: Thu Oct 24, 2019 11:25 am
by Sendlingur
Hi all

Is it possible to link to a specific news article from the content page editor?

As things are in my setup it is only possible to link to another content page but not a specific news article.

I was thinking about if the back end user is writing a content to a content page and wants to have a link in the content text to a news article, how would the user be able to do that?

Re: Link from content page to news article?

Posted: Thu Oct 24, 2019 3:00 pm
by DIGI3
The complex way for you, but easier for the editor, would be to make a tiny/microtiny plugin based on cms_selflink one that fetches a list of news articles for them to choose from. A udt/plugin would also accomplish the same thing if they're comfortable adding a Smarty tag to the content.

The easy way for you, but slightly harder for the editor, would be for them to just use the 'add link' button and paste in the full url to the news article.

What I usually do, and I know this isn't quite what you're asking but worth mentioning anyway, is to add a CGContentUtilities field to the page template that pulls in a list of news articles. The editor can select one for the page, and it adds a button "read more" or a little preview of the news article below. It doesn't let them add it in the content text though.