To feed your site data to Zillow or Trulia, you must first have the feed enabled in the Misc / Feed Settings option in the IP Settings panel.

Feeds Overview

Figure A: IProperty Feed
Figure A: IProperty Feed

Since Zillow and Trulia only accept certain pre-defined values for property categories, garage type and heat, while IP allows you to use any values you like for these items, you must edit the components/com_iproperty/views/feed/tmpl/zillowtrulia.php file to set these variables.

You’ll see an “EDIT BELOW HERE” notice near the top of the file, followed by a number of options you must set to match your site’s settings.

For example, Trulia accepts the word “Condo” as a valid property category, but will error if you supply “Condominium”. Therefore if you have a property category called “Condominium” that you’d like to feed to Trulia or Zillow, you must map the local category name to the Trulia-accepted name.

This is accomplished in the PHP switch statement in the file. Simply change

    case 'My Category two':
        $trulia_type = 'Condo';
    break;

to

    case 'Condominium':
        $trulia_type = 'Condo';
    break;

Once you’ve mapped your categories, heat and garage designations to the appropriate Zillow/Trulia standard names, you should be ready to go. The feed will now be available at www.yoursite.com/index.php?option=com_iproperty&view=feed&layout=zillowtrulia&format=xml. You can supply this URL to Zillow/Trulia for them to pick up the feed.

Tags: iproperty