17488 Posts in 4473 Topics by 1978 members
|
Page:
1
|
Go to End | |
| Author | Topic: | 2633 Views |
-
Embargo/expiry module

9 January 2008 at 3:40pm
I have created a module that allows your pages to embargo and expire when you choose.
Available at http://www.silverstripe.com/modules.
-
Re: Embargo/expiry module

10 January 2008 at 12:18am Last edited: 10 January 2008 12:18am
Hi Simon
I was anxious to check it out, cool module! My compliment!
Would be very cool if the embargo/expire feature is also available for the other modules like blog entry, e-commerce, gallery, etc.
Have a nice day
Mario
-
Re: Embargo/expiry module

10 January 2008 at 8:07am
The only way I can think of to do this would be to subclass each of the page types.
Will get on to it.
-
Re: Embargo/expiry module

10 January 2008 at 8:39am
Hi Simon
Thanks for feedback.
What do you think to realize it as widget for the other modules?Cheerio
Mario
-
Re: Embargo/expiry module

10 January 2008 at 9:26am
As far as I'm aware, that wont be possible, as I use the can() method to hide the links, and I don't think there's a way to override that on a page without subclassing the page type.
-
Re: Embargo/expiry module

27 January 2008 at 3:38pm
Here some cool additions for recurring times:
Can you add the ability so you can specify a page to only show on certain days of the week?
For example: If I wanted a page to show only on Mon, Wed, and Friday and if I dont specify a time its from midnight-midnight be default or something.Also can you have it so that I can show a page at a recurring time like: everyday or (x)day at 5pm - 7am? or whatever times I choose?
This way someone could show a special every Friday starting at noon if they wanted to. Sort of a "happy hour" if-you-will.
Thanks!
Buddy
-
Re: Embargo/expiry module

27 January 2008 at 4:55pm
Once my patch gets confirmed, I'll release a version that gives every page (that doesn't override can(), without calling parent::can() as well) the ability to Embargo/expiry
-
Re: Embargo/expiry module

16 February 2008 at 3:42pm
Now that Matt's added this to SVN (here), you can see my progress.
There is currently two separate ways for embargo/expiry to be applied. One requires a core patch, and then adds it to every page. The other doesn't require a patch, but is only one page type.
Buddyq, I'll get onto your ideas now (:
| 2633 Views | ||
|
Page:
1
|
Go to Top |


