Secondary Details page

3 posts by 2 authors in: Forums > CMS Builder
Last Post: January 6, 2017   (RSS)

Hi all,

we have a client who needs us to create a secondary listing and detail page, as the primary listing and details pages are configured within the control panel (presumably in order to manage the links between the two pages) what would be the best way to create separate listing and detail pages.

The client lists new and used static holiday homes on their primary sales site however they want to link to the lists from two of their holiday park sites.  We have done this previously just by having a standard link to the sales site however the client doesnt want the existing menus from the sales site showing when linked to from the park sites. The obvious solution is to create a new/additional listing and detail page which meets his criteria which we can link to. My concern however is whether this will work given that the listing and detail pages are stipulated in the control panel. My hope is that we can hardcode the paths to the new pages rather than using the links created by CMSB.

Is this possible please?

By ross - January 5, 2017

Hi there

Thanks for posting.

I think you hit the nail on the head with this: 

My hope is that we can hardcode the paths to the new pages rather than using the links created by CMSB.

This is going to be the solution.

What you need to do is hardcode the links from your second list page to your second detail page.

Typically, your link would look like this:

<a href="<?php echo $record['_link']; ?>">Read More</a>

What you'll be looking for on your second list page is something like this:

<a href="/secondDetailPage.php?<?php echo $record['num']; ?>">Read More</a>

You'll need to change the "secondDetailPage.php" part of course.

Does this all make sense?  

Give it a shot and let me know any questions.

Thanks.

-----------------------------------------------------------
Cheers,
Ross Fairbairn - Consulting
consulting@interactivetools.com

Hire me! Save time by getting our experts to help with your project.
Template changes, advanced features, full integration, whatever you
need. Whether you need one hour or fifty, get it done fast with
Priority Consulting: http://www.interactivetools.com/consulting/