Hey all,
Is there a way to set a publish date on any pages like you can with the news articles? I've had a search but can't find it anywhere.
Cheers,
Mike
Setting a publish date
-
MikePearce
Re: Setting a publish date
Thanks pishkus,
I don't think I was clear enough, what I meant was, to have the ability to give a page in the CMS a publish date, so that, up to that date, the page isn't available for visitors to view, but when it gets to the publish date, the page becomes live on the site.
Cheers,
Mike
I don't think I was clear enough, what I meant was, to have the ability to give a page in the CMS a publish date, so that, up to that date, the page isn't available for visitors to view, but when it gets to the publish date, the page becomes live on the site.
Cheers,
Mike
Re: Setting a publish date
That's on a big list of stuff that I'll be doing for a company after 1.0 comes out. You'll get to reap the benefits sometime in the near future. 
-
MikePearce
Re: Setting a publish date
Hello again,
I've got the date and time dropdowns functioning in the admin and writing to the db.
What I need to do now is to stop use these datetimes to stop the pages showing on the site.
I can hide the actual pages by editing the two queries in LoadPageInfoByContentAlias(), but I cannot find where to add " AND (c.publish = NOW() OR c.expiry = '0000-00-00 00:00:00')" to stop the pages appearing in the menus!
Can anyone help?
Cheers,
Mike
I've got the date and time dropdowns functioning in the admin and writing to the db.
What I need to do now is to stop use these datetimes to stop the pages showing on the site.
I can hide the actual pages by editing the two queries in LoadPageInfoByContentAlias(), but I cannot find where to add " AND (c.publish = NOW() OR c.expiry = '0000-00-00 00:00:00')" to stop the pages appearing in the menus!
Can anyone help?
Cheers,
Mike
Re: Setting a publish date
Thanks for the code! I just happened to be looking for this yesterday and finally gave up!

