Is there a module to switch pages "active" on a special date?

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
jonnieb
Forum Members
Forum Members
Posts: 16
Joined: Thu Sep 11, 2008 10:32 pm

Is there a module to switch pages "active" on a special date?

Post 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
NaN

Re: Is there a module to switch pages "active" on a special date?

Post 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.
Post Reply

Return to “Modules/Add-Ons”