Link from content page to news article?

For questions and problems with the CMS core. This board is NOT for any 3rd party modules, addons, PHP scripts or anything NOT distributed with the CMS made simple package itself.
Post Reply
Sendlingur
Forum Members
Forum Members
Posts: 60
Joined: Wed Aug 08, 2018 4:59 pm

Link from content page to news article?

Post 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?
User avatar
DIGI3
Dev Team Member
Dev Team Member
Posts: 1076
Joined: Wed Feb 25, 2009 4:25 am
Location: Victoria, BC

Re: Link from content page to news article?

Post 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.
Not getting the answer you need? CMSMS support options
Post Reply

Return to “CMSMS Core”