Developer forum

Forum » CMS - Standard features » Newsmodule related items

Newsmodule related items

Casper Bang-Udesen
Reply
Hi
How do I attach related content to a news item ?

I know that you can attach fields groups to a newscategory but this functionality is somehow limited.

The customers wants the ability to create additional information to a newsstory for example a contact box or a additional description box.

See screenshot



screenshot.png

Replies

 
David Matheson
Reply

Hi Casper,
The News Module does not support this directly.  What I do (in the News page template) is to add a Global:Paragraph.Content() tag which displays the contact information.  That way, if the person leaves the company then you only need to edit the contact information one place.

If you have different contact persons for different news types, then you'll need either to have more that one News page template, or write an If statement based on the News Category that includes one or another Global:Paragraph.Content() tag.

 

<!--@If(News:CategoryName="General")-->
<!--@Global:Paragraph.Content(XX)-->
<!--@EndIf-->
<!--@If Not(News:CategoryName="General")-->
<!--@Global:Paragraph.Content(YY)-->
<!--@EndIf-->



regards
David
www.grublestova.no

 

You must be logged in to post in the forum