Jump to content
Sign in to follow this  
Guest guest_2546

Changing output of attributes

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

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
Sign in to follow this  

×
×
  • Create New...