Separate detail page for archived records

4 posts by 2 authors in: Forums > CMS Builder
Last Post: October 14, 2014   (RSS)

By MercerDesign - September 22, 2014

I have my list and detail showing on the same page which works fine but I need to do an archive list that appears on a second page, how can I do it so that the detail page for the archive list page is different, when I set it up the detail page linked back to the page with the curretn articles on. Thank you in advance.

By claire - September 24, 2014

Hi there

What you'll need to do is set a flag or a checkbox of some kind in your section to identify records as being archived or not. Then change the detail page to check and see if the current record is marked as archived, and load whatever different formatting you need.

This may be a little unwieldy but it's the simplest way of doing it.

Does this make sense?

--------------------

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By claire - October 14, 2014

I'm not sure I understand the issue here. You added two checkboxes instead of one?

Ideally you should be able to choose what appears in each file simply by adding an extra where parameter to the getRecords function:

'where' => 'archived = 1',

or

'where' => 'archived = 0',

depending on whether you want to show archived records or current records.

--------------------

Claire Ryan
interactivetools.com

Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/