Jump to content

Changing output of attributes


Guest guest_2546
 Share

Recommended Posts

Guest guest_2546

HiI'm working on something at the moment where the client wants to show SOME of the attributes, then the description field, then the rest of the attributes. It's going to be very fixed in structure so I've resigned myself to the fact that I'll have to display each of the attributes manually in the _detailed template instead of just looping through them.So, I have this:

{foreach from=$setall item=item}            			{if $item.req_type != 6}                            {if $item.attr_value}                                                             
                                   {$item.name}                                    {$item.attr_value|JView:$item.attr_id:$data->id:$item.type:$item.req_type}                                                                                         {/if}			{/if}			{/foreach}

Bearing in mind that some of the attributes are multiple select fields, could someone get me started on how to display a single attribute with it's value(s) please.For example, my output has:Destinations 3 British Isles EuropeThe '3' is just where I'm displaying the $item.attr_id value.Best regardsAndy

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...