Archive Uploads

3 posts by 2 authors in: Forums > CMS Builder
Last Post: June 30, 2008   (RSS)

By Mohaukla - June 30, 2008

I don't know if this has been addressed before.
I would like to create a page that has a set of uploads (say PDfs) and when the time comes to archive a particular document all one would have to do is modify the listing and click a checkbox (having a field name of "archive") at that time the document would appear in an archive list somewhere else on the page or another page that just looks to list out the archived items.
I can add the field to the section but what would the code look like to just list the archived items?
Michael Moyers



Owner of Just Rite Design Inc. A growing network of professionals in web design, graphic design, flash development, programming, and audio & video productions.



"Due to budget constraints, the Light at the end of the tunnel will be temporarily out!"

Re: [justritedesign] Archive Uploads

By Dave - June 30, 2008

Hi Michael,

You're on the right track. Add a checkbox field called "Archive".

Then for your non-archive viewer add this where clause:
'where' => "'archive' = '0'",

And for your archive viewer add this where clause:
'where' => "'archive' = '1'",

Hope that helps, let me know if you need more help with that.
Dave Edis - Senior Developer
interactivetools.com