Linking Listings

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

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 :)