Mark Handy
Mark Handy

Reputation: 1256

Kentico cms.file publish date

I've got a simple repeater that list links to uploaded documents using cms.file. I'm drawing a blank on adjust the ORDER BY based on publish date. I can't find anything here on this, so i apologize if this is a duplicate.

Upvotes: 0

Views: 363

Answers (3)

Chetan Sharma
Chetan Sharma

Reputation: 1442

There are two fields [DocumentPublishTo] and [DocumentPublishFrom] that you can think of using. These are the two fields which appear at the bottom of each form page by default.

Upvotes: 0

Martin Makarsky
Martin Makarsky

Reputation: 2650

Best practice is to add custom field to page type (in this case cms.file or better create the new one) and set ORDER BY condition to this new field. There are also properties like DocumentModifiedWhen, DocumentCreatedWhen, DocumentCheckedOutWhen you can use.

Upvotes: 2

Mark Handy
Mark Handy

Reputation: 1256

I'm going to use DocumentModifiedWhen as the ORDER By statement.

Upvotes: 0

Related Questions