Advertisement
developerjustin

Untitled

Dec 19th, 2013
180
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Smarty 1.20 KB | None | 0 0
  1. {* original rss feed template *}
  2. <?xml version="1.0"?>
  3. <companylist>
  4.   {CompanyDirectory}
  5.   {foreach from=$categorylist item='category'}
  6.   <category>
  7.     <name><![CDATA[{$category->name}]]></name>
  8.     {CompanyDirectory action='default' category=$category->id assign='junk'}
  9.     {foreach from=items item='company'}{strip}
  10.       <company>
  11.          <name><![CDATA[{$company->company_name}]]></name>
  12.          <address><![CDATA[{$company->address}]]></address>
  13.          <latitude><![CDATA[{$company->latitude}]]></latitude>
  14.          <longitude><![CDATA[{$company->longitude}]]></longitude>
  15.          <fax><![CDATA[{$company->fax}]]></fax>
  16.          <details><![CDATA[{$company->details}]]></details>
  17.          {if $company->picture_path != ''}
  18.          <image>{$company->picture_location}</image>
  19.          {/if}
  20.          {* note this is just a sample... more information can be added as required structure is determined *}
  21.          {if isset($company->customfieldsbyname.anotherimage) && $company->customfieldsbyname.anotherimage->type == 'image'}
  22.          <secondimage>{$company->customfieldsbyname.anotherimage->image_url}</secondimage>
  23.          {/if}
  24.       </company>
  25.     {/strip}{/foreach}
  26.   </category>
  27.   {/foreach}
  28. </companylist>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement