Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {* original rss feed template *}
- <?xml version="1.0"?>
- <companylist>
- {CompanyDirectory}
- {foreach from=$categorylist item='category'}
- <category>
- <name><![CDATA[{$category->name}]]></name>
- {CompanyDirectory action='default' category=$category->id assign='junk'}
- {foreach from=items item='company'}{strip}
- <company>
- <name><![CDATA[{$company->company_name}]]></name>
- <address><![CDATA[{$company->address}]]></address>
- <latitude><![CDATA[{$company->latitude}]]></latitude>
- <longitude><![CDATA[{$company->longitude}]]></longitude>
- <fax><![CDATA[{$company->fax}]]></fax>
- <details><![CDATA[{$company->details}]]></details>
- {if $company->picture_path != ''}
- <image>{$company->picture_location}</image>
- {/if}
- {* note this is just a sample... more information can be added as required structure is determined *}
- {if isset($company->customfieldsbyname.anotherimage) && $company->customfieldsbyname.anotherimage->type == 'image'}
- <secondimage>{$company->customfieldsbyname.anotherimage->image_url}</secondimage>
- {/if}
- </company>
- {/strip}{/foreach}
- </category>
- {/foreach}
- </companylist>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement