publishDate

3 posts by 2 authors in: Forums > CMS Builder
Last Post: April 12, 2008   (RSS)

Re: [webshack] publishDate

By Dave - April 7, 2008

Hi webshack,

Is it just one page? Or one page within a multi-page section? If it's just a single page then you could have a list viewer, set it to display just one record per page and sort by date and show page 1 like this:

$options['perPage'] = '1';
$options['pageNum'] = '1';
$options['orderBy'] = 'date DESC'


then remove the prev/next links. Then the client could create multiple pages and only the newest one (that was past the publishDate) would be displayed. The url would stay the same and at midnight monday morning it would switch over to the newer record.

Would that work (and does it make sense)? :)
Dave Edis - Senior Developer
interactivetools.com

Re: [Dave] publishDate

By webshack - April 12, 2008

THANK YOU - this worked!