daztheblue Posted December 30, 2011 Share Posted December 30, 2011 Back OfficeEmployees Contact Is it possible to order the contacts on this page and in the front end? At the moment I think its ordered by date added. I'd like to control the order be that in contact-form.tpl in this snippet <select id="id_contact" name="id_contact" onchange="showElemFromSelect('id_contact', 'desc_contact')"> <option value="0">{l s='-- Choose --'}</option> {foreach from=$contacts item=contact} <option value="{$contact.id_contact|intval}" {if isset($smarty.post.id_contact) && $smarty.post.id_contact == $contact.id_contact}selected="selected"{/if}>{$contact.name|escape:'htmlall':'UTF-8'}</option> {/foreach} </select> Or in the database in this table Table: ps_contact Many thanks in advance Link to comment Share on other sites More sharing options...
Recommended Posts