List and detail on same page
6 posts by 5 authors in: Forums > CMS Builder
Last Post: January 15, 2009 (RSS)
By KaboomJk - January 13, 2009
I have a page that has a listing showing only the title field in the right column. I was wondering if it's possible to (on that same page) to set up the left column to display the title and content fields when one of the listings is clicked. This would require that one page to function as both the list page and the detail page.
Re: [KaboomJk] List and detail on same page
By _kate_ - January 13, 2009
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
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?
interactivetools.com
Re: [_kate_] List and detail on same page
By KaboomJk - January 15, 2009
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
Re: [KaboomJk] List and detail on same page
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.
[:)]