Archive dynamic pages?

The place to talk about things that are related to CMS Made simple, but don't fit anywhere else.
Post Reply
CMSmonkey
Power Poster
Power Poster
Posts: 290
Joined: Thu Nov 27, 2008 4:58 pm

Archive dynamic pages?

Post 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.
Last edited by CMSmonkey on Tue Jun 15, 2010 7:09 pm, edited 1 time in total.
JeremyBASS

Re: Archive dynamic pages?

Post 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
User avatar
kermit
Power Poster
Power Poster
Posts: 693
Joined: Thu Jan 26, 2006 11:46 am

Re: Archive dynamic pages?

Post 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.
Last edited by kermit on Tue Jun 15, 2010 6:54 pm, edited 1 time in total.
eternity (n); 1. infinite time, 2. a seemingly long or endless time, 3. the length of time it takes a frozen pizza to cook when you're starving.
4,930,000,000 (n); 1. a very large number, 2. the approximate world population in 1986 when Microsoft Corp issued its IPO. 3. Microsoft's net profit (USD) for the quarter (3 months) ending 31 March 2007.
CMSMS migration and setup services | Hosting with CMSMS installed and ready to go | PM me for Info
CMSmonkey
Power Poster
Power Poster
Posts: 290
Joined: Thu Nov 27, 2008 4:58 pm

Re: Archive dynamic pages?

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

Return to “The Lounge”