22500 Posts in 6852 Topics by 2750 members
|Go to End|
24 January 2010 at 10:31am
I am building a website with silverstripe and i need some directives. A page of my website should be daily update with new information (content). For this i build a table in my Mysql database. In this Table there are 2 columns: data and the validdate.
is it possible in silverstripe to automatically update the page content at the specified date through Query on my database? How?
Thank you in advance
25 January 2010 at 3:54am
There is an embargo/expiry module that allows for time based publishing of content, but I've heard rumours its being discontinued and I haven't actually be able to get it to work.
But if the publishing date already exists as a date field on your data object its just a matter of wrapping the relevant part of your template with a <% if Validate.InPast %> <% end_if %> (assuming the Validate column is your Date field ). http://doc.silverstripe.org/doku.php?id=date
25 January 2010 at 6:56am
thanks, i tried to download the module embargo, it seems that the link is down. However i dont know if this module is the quite solution of my problem, because i dont want that the page expires. Only the content of page will be update daily. in others words, when a user open the page, the valid information will be displayed, this information should come from a query on the existing database.
Thank you for all answers.
|Go to Top|