Posting Real Estate Properties Jointing (from 2 users)

14 posts by 3 authors in: Forums > CMS Builder
Last Post: August 27, 2012   (RSS)

By csdesign - August 23, 2012 - edited: August 23, 2012

I pulled this code from:
Code Generator > List Page
Listed By (values): <?php echo join(', ', $record['listed_by:values']); ?><br/>
Listed By (labels): <?php echo join(', ', $record['listed_by:labels']); ?><br/>


When entered to my test listing page - the error is on line 166 and 167 - which are the two lines listed above.
http://www.dunhamrealestateservices.com/listings2.php

I entered the same code on the test "listDetail" page for a property that both agents are marked as listed by. Same error on line 102 and 103 (same new code)
http://www.dunhamrealestateservices.com/listingDetail12.php?Commercial-Business-in-Cooke-City-MT-near-NE-Entrance-to-Yellowstone-Park-43

the second part of this would be so that any property listed jointly will come up under each user number (Cindy's Listings OR Lyle's Listings) but will only come up once under a property type on the listing page. For instance. On this page for Commercial & Business Listings (all agents) The first two listings are actually the same property (see address is 302 Main St. on both).
http://www.dunhamrealestateservices.com/listings.php?property_type=Commercial+and+Business

Hope that all make sense.

Thanks!!!

Re: [csdesign] Posting Real Estate Properties Joint Listing (from 2 users)

By Jason - August 24, 2012

Hi,

The first set of errors is because I think you're using a different variable name than "$record".

Try this:

Listed By (values): <?php echo join(', ', $listing['listed_by:values']); ?><br/>
Listed By (labels): <?php echo join(', ', $listing['listed_by:labels']); ?><br/>


Give that a try.
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

Hire me! Save time by getting our experts to help with your project.
http://www.interactivetools.com/consulting/

By csdesign - August 24, 2012

Fantastic! It worked!

http://www.dunhamrealestateservices.com/listings2.php

So I assume I can drop the "values" entry and just go with "labels" ? there's an extra comma after Cindy's name. Can I make that go away?

How then can I get each name to link to their "homepageDetail" page and also display their individual phone number after each name?

example:
Call Agent: Lyle Dunham (linked to his homepage) at 406-425-0180, Cindy Dunham (link to her homepage) at 406-425-0182

thanks again! Tina