Linking Listings

2 posts by 2 authors in: Forums > CMS Builder
Last Post: October 31, 2008   (RSS)

By Active1965 - October 31, 2008

Hi maybe you can help

I would like to do the following.

1 Create a listing of properties.

2 The page will contain around 10 listings per page, with basic information for each listing and 1 photo.

3 When a chosen property is clicked it will open a page with that listing and more information and more photos.

How do I link the basic listing to the page that contains more information on that listing ?

Thanks

Re: [Active1965] Linking Listings

By _kate_ - October 31, 2008

Hi,
The short answer to your question is that CMSB will pretty much do that for you.

In the list page code you will see a line which looks like this:
_link : <a href="<?php echo $record['_link'] ?>"><?php echo $record['_link'] ?></a>

This is what will link from your listings page through to the detail page. You can edit it accordingly. E.g. If you wanted a link that says Click for more information you would use:
<a href="<?php echo $record['_link'] ?>">Click for more information</a>

You need one page with the list page code for your section, and one page containing the detail page code for that section.

Once you have done that go to the section properties for your section and update the "Viewer URLs" to whatever you have named your pages, e.g.
List Page - properties.php
Detail Page - properties_detail.php


If you need a step by step guide of how to create your listings section or if you have any further questions please feel free to ask :)