Page 1 of 1
Is there a module to switch pages "active" on a special date?
Posted: Fri Jun 05, 2009 9:25 am
by jonnieb
Hi!
Is there any module or work around to prepare pages and switch them to online mode on a definded date, like it is possible in the news module?
Best,
Markus
Re: Is there a module to switch pages "active" on a special date?
Posted: Fri Jun 05, 2009 2:26 pm
by NaN
I don't know about such a module.
But it should be easy to realize with an UDT a second content block with param oneline=true and the event manager.
When creating/editing a page set it to not active.
In the second content block you enter the date when this page will be active. (it must be a certain syntax)
The UDT checks all pages for that second contentblock and compares the current date with the entered one.
And then it sets all pages to active where the "to publish"-date is equal or before the current date.
Last not least you just need to subscribe your UDT to an event that is sent before the cms try to get the content.
It is just an idea.
I have no code available.
And i don't know if this is the right way to do this.
But maybe it helps to find a solution.