Linking to a different listingDetail.php pages

3 posts by 2 authors in: Forums > CMS Builder: Plugins & Add-ons
Last Post: June 5, 2013   (RSS)

By andybarn - May 26, 2013

Hi

I have Sales properties and Rentals properties on the same Website. I have created 2 different search results pages called listings_sales.php and listings_rentals.php (based on the listings.php page) This works great.

Now I want to create 2 different Details pages, one for Sales and one for Rentals.

For Sales I use the default listingDetail.php page and link to it as follows

<a href="<?php echo $listing['_link'] ?>" class="button style1">Click Here</a>

For Rentals I have created a listingDetail_rentals.php page (based on listingDetail.php) but not sure how to link to this from the search results page listings_rentals.php. Please could you let me know how to link to this page?

Thanks

Andy

By andybarn - June 5, 2013

Thanks Greg

That was more than I needed.

I was already on the Rentals listing_rentals.php page so I did not need the "if" statement.

I just needed the link <a href="listingDetail_rentals.php?<?php echo $listing['num'] ?>" class="button style1">Click Here</a></span>

Thanks again though - you pointed me in the right direction and using the link above works great!

Andy