List and detail on same page

6 posts by 5 authors in: Forums > CMS Builder
Last Post: January 15, 2009   (RSS)

Re: [KaboomJk] List and detail on same page

By _kate_ - January 13, 2009

You could create a page with frames or better yet one iframe, and call say the left hand column A.

You could then make a list page as per normal, edit it so that it shows only the titles and link that to the "detail" page and set the source for it to open in as Frame A. Then simply make up a detail page so that the content can be generated for the iframe.

Does that make sense? Hopefully :)
If you have any further questions or need me to explain further please don't hesitate to ask. Perhaps someone else may even have a simpler solution for you...

Re: [KaboomJk] List and detail on same page

By Dave - January 13, 2009

>Perhaps someone else may even have a simpler solution for you...

You can also have the list and detail viewer code on the same page, but not with paging. If you need to page through the records it doesn't work.

Do you have a mockup of the page you're working on?
Dave Edis - Senior Developer
interactivetools.com

Re: [_kate_] List and detail on same page

Thanks,

It looks like the iframe solution will work for what I'm doing.

Re: [KaboomJk] List and detail on same page

By zip222 - January 15, 2009

It can also be done using an include. Why use frames or iframes if you don't need to?

Re: [KaboomJk] List and detail on same page

Hi there,

I'm not sure if this is what you're looking for but it sounds like it. I did the same here:
http://www.allianceinpartnership.co.uk/schoolsmainPage.php

I created a separate page just for the list and named it schoolsList.php then used a php include on the detail page to pull the list through. So in your right column (assuming that's where you want the list) you would use the code:
<?php
include("list.php");
?>

then use the code generator to provide you with the code for the list.php page.

i hope that makes sense - i dont think i;m very good at explaining things!!!!
nikki.
[:)]