Posting Real Estate Properties Jointing (from 2 users)

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

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

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/