Page 1 of 1

[SOLVED] News Link to an Existing Page

Posted: Sun Aug 26, 2012 3:40 pm
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.

Re: News Link to an Existing Page

Posted: Sun Aug 26, 2012 5:28 pm
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...

Re: News Link to an Existing Page

Posted: Sun Aug 26, 2012 7:22 pm
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

Re: News Link to an Existing Page

Posted: Mon Aug 27, 2012 1:35 pm
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.