Kind of like a blog, but not really a blog, sort of..
Permalink
I need to make an archive-able news section for a site I'm working on. It's bloggish but not really a blog, I think. Basically the user just needs to be able to put a lot of text into a section and then have the month automatically archived on a separate page when the month is complete.
Has this been done anywhere?
Has this been done anywhere?
It is a planned feature set for new version of blog(the bloggish blog)
if anyone else wants to do this basically you create an archivable collection attribute, then either create a job or extend page_view via events(total overkill IMO) then
$pa = Page::getByID(Config::get('ARCHIVE_PAGE_ID');
//grab pages that have that attribute
foreach($pages as $p){
if(time() - strtotime($p->getCollectionDatePublic()) > CONFIG::get('ARCHIVE_PAGE_SECONDS')) $p->move($pa);
}
soemthing like that
$pa = Page::getByID(Config::get('ARCHIVE_PAGE_ID');
//grab pages that have that attribute
foreach($pages as $p){
if(time() - strtotime($p->getCollectionDatePublic()) > CONFIG::get('ARCHIVE_PAGE_SECONDS')) $p->move($pa);
}
soemthing like that