Developer forum

Forum » CMS - Standard features » Best practice item publishing

Best practice item publishing

Martin Grønbekk Moen
Reply

We try to use item publishing as much as possible, but I have a few questions regarding this.

Lets say we try to create a news module for one customer, where you should be able to publish news items.
One news item should have "Title", "Body text", "Publish date" and "Deactivation date".

My question is related to the title, and the dates.
Both title and publish-/deactivation dates are currenty standard in DW.
And we have two approaches to this.

A) Use the default title and dates. But this does not look like is working that good when using items. Cant get hold of the information somehow when using items.

B) Create new item fields for title and dates. This mean that we have duplicate fields for title and dates, dont think this is a good idea either.

Could someone please shed some light on this?
 


Replies

 
Nicolai Høeg Pedersen
Reply

Hi Martin

In 8.5 (and in 8.4.1.something) you can choose on an item which field should be the title field. In that way you have the field on the item control the name of the paragraph/page. See attachment.

The publication dates from the page are available in tags inside the <!--@LoopStart(ItemPublisher:Items.List)--> loop:

<!--@ItemPublisher:Item.ActiveFrom-->
<!--@ItemPublisher:Item.ActiveTo-->

Nicolai

Capture.JPG

 

You must be logged in to post in the forum