[SOLVED] News Link to an Existing Page

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
RHF
Forum Members
Forum Members
Posts: 20
Joined: Sun Jan 23, 2011 1:55 am

[SOLVED] News Link to an Existing Page

Post by RHF »

I often have a News item that references an event that already has an existing page on the site. I would like for the News item link to open the existing page rather than open a new page and show the Summary/Detail information.

I have experimented with different options, including using the existing page URL for the item but this opens a new page not the desired existing page.

Thanks for any suggestions.
Last edited by RHF on Mon Aug 27, 2012 1:37 pm, edited 1 time in total.
User avatar
Dr.CSS
Moderator
Moderator
Posts: 12711
Joined: Thu Mar 09, 2006 5:32 am

Re: News Link to an Existing Page

Post by Dr.CSS »

The easiest way would be to put a link in the content of the article, if you don't want any links to the detail then you will have to customize the summary template...
User avatar
Rolf
Power Poster
Power Poster
Posts: 7825
Joined: Wed Apr 23, 2008 7:53 am
Contact:

Re: News Link to an Existing Page

Post by Rolf »

In Dutch, but I think it will be clear how to do it... http://forum.cmsmadesimple.org/viewtopi ... 52&t=29666

grtz. Rolf
- + - + - + - + - + - + -
LATEST TUTORIAL AT CMS CAN BE SIMPLE:
Migrating Company Directory module to LISE
- + - + - + - + - + - + -
Image
RHF
Forum Members
Forum Members
Posts: 20
Joined: Sun Jan 23, 2011 1:55 am

Re: News Link to an Existing Page

Post by RHF »

Thanks very much. I used both of your suggestions.

Essentially I created a new Field Definition, called PageAliasLink.
In the Summary template, in <div class="NewsSummaryLink"> I test the value of this field. If it is non-null, I set a cms_selflink to the value. Otherwise, I use the normal News link.
Post Reply

Return to “CMSMS Core”