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/

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

By Jason - August 27, 2012

Hi Tina,

You should be able to get rid of that extra comma like this:

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

For getting the extra information about their account, you'll need a separate query to retrieve their individual records. Using joinTable isn't going to give you all the detail that you want.

If you need any help with this, please email consulting@interactivetools.com and we can go over some options.

Thanks,
---------------------------------------------------
Jason Sauchuk - Project Manager
interactivetools.com

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