Page 1 of 1

Archive dynamic pages?

Posted: Tue Jun 15, 2010 4:47 pm
by CMSmonkey
Hi Everyone,
Has anyone found a successful way to archive and store dynamic pages?  Specifically, I have a client that sends out on a weekly basis an email that shows the newest articles added to the site (using the News module).  The page is composed of the latest additions (in red) and the current ones in black.

If someone wants to see what was sent a month ago, the information wouldn't be the same as what's new is no longer new, and what's expired is no longer on the page.

I saw there was an HTMLExport module that seemed like an ideal module for the job, but it seems to be buggy and outdated.

Any other suggestions?  I know there are third party apps out there that could PDF a webpage, but I didn't want to complicate the situation for a client that isn't techy.

Re: Archive dynamic pages?

Posted: Tue Jun 15, 2010 5:46 pm
by JeremyBASS
Just a thought.. I would think that with a flag.. when the postcontent_render event fires off may-be you could save the info off in the db... ?? Just thinking out load.. I didn't dive in but you could do an if at time set and not exist save to db and then that could be what is used at need be??.. but may be a path top beat down.. Cheers -Jeremy

Re: Archive dynamic pages?

Posted: Tue Jun 15, 2010 6:51 pm
by kermit
sounds like you just need news summary by dates.. then a page could display all the articles relevant to any given 'newsletter', and you'd also have a link that won't change that can be included with the newsletter that goes to the page for that newsletter.

if you know smarty, it is possible to code a template, using only smarty, to limit a news summary by a date range..  the problem is that smarty has to do a lot of heavy lifting in order to accomplish what a dozen or so lines added to the core news module could do much more efficiently.  if you have massive amounts of articles to dig through, doing it using smarty will slow down page generation time (smarty caching should help keep that down, though, once cache files are saved.. as these segments won't change any)

if you search around around the forums you'll also find udt's and even core patches (adapt those at your own risk) that have been made previously to do this.

this is an oft-requested feature for the news module, it's one of those things that just 'makes sense' and should be there.. as to why it isn't.. you'll have to take that up with the dev team member(s) responsible for the news module.

Re: Archive dynamic pages?

Posted: Tue Jun 15, 2010 7:24 pm
by CMSmonkey
kermit wrote: if you know smarty, it is possible to code a template, using only smarty, to limit a news summary by a date range..  the problem is that smarty has to do a lot of heavy lifting in order to accomplish what a dozen or so lines added to the core news module could do much more efficiently.  if you have massive amounts of articles to dig through, doing it using smarty will slow down page generation time (smarty caching should help keep that down, though, once cache files are saved.. as these segments won't change any)
I implemented Blast's excellent summary period template but i ran into the issue of items disappearing because they expired.  Using the showall parameter works, but then it shows articles that expired in the previous weeks' newsletter.   :-\