Separate detail page for archived records

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

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 MercerDesign - October 13, 2014

Hi, I have got two check boxes, one for current and one for archive.

I have sorted out how the current records display and how the archive records display and I have put the archive page in a folder so the detail page can actually be the same one.

But my problem now is that because the list and detail records are on the same page as a Combo Page, the detail record for the first entry in the multi record list displays instead of the first archvie record displaying, so basically I need to tell the detail record to only show if it's been ticked as being an archive record. The URL's to see what is going on are:

http://www.twentyfifty.co.uk/2050-training.php

http://www.twentyfifty.co.uk/training-archives/2050-training.php

I hope you can help.

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/