Detail page within a detail page

3 posts by 2 authors in: Forums > CMS Builder
Last Post: June 24, 2008   (RSS)

By rjbathgate - June 24, 2008

Firstly, a huge thank you Dave for your help on my last question!

I have a detail page, on which I have a link to a second detail page. I'm having real trouble keeping the record the same - i.e. say we're on record D on detail page 1, when clicking the link to detail page 2, we're loosing the fact we're on record D.

On detail page 1, we have:
<a href="detail-two.php">View Floor Plan</a>

I've tried making the link as:
<a href="detail-two.php?reference=<?php echo $saleRecord['reference'] ?>">View Floor Plan</a>

To make it point to detail-two.php?reference=D for example, but this doesn't work.

Also tried adding in code into there where => of step 1 of detail page 2, but nothing i've tried works - we either revert to record A, or no record at all.

I can see it being really easy and obvious, but can't get it to work anyway I try...

Normally I would just use:
<?php echo $saleRecord['_link'] ?>
but this obviously reverts to the first detail page as defined in the admin setup of the table in the CMS.

NB will ultimately have more than one additional detail page, but presuming solution to this will work for others.

Thank you heaps in advance,

Rob

Re: [Dave] Detail page within a detail page

By rjbathgate - June 24, 2008

Hi Dave!

Thank you, that worked a treat - awesome. You're a jedi.

Rob