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 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/