CMS Automne
http://www.automne-cms.org/forum/

Ordering Search result
http://www.automne-cms.org/forum/viewtopic.php?f=7&t=1072
Page 1 sur 1

Auteur:  alexallu [ Mar Nov 01, 2011 10:19 pm ]
Sujet du message:  Ordering Search result

Hello,

I'm working with a Polymod module, and I would like to order the search alphabeticaly by one of the fields, is this possible?

How can I do it.

I have a field called Agency, and I need to order the search by Its content.

Auteur:  Frank [ Mer Nov 02, 2011 10:32 am ]
Sujet du message:  Re: Ordering Search result

Hi,

Yes you can do that with the <atm-search-order> tag. I suggest you take a look at the generated documentation of your polymod module.

In your case it should give something like this :

Code :
<atm-search-order search="yourSearch" type="{yourObject:Agency:fieldID}" direction="asc" />


Replace by the name of your search and give the appropriate object name and that should do it.

Auteur:  alexallu [ Jeu Nov 03, 2011 12:32 am ]
Sujet du message:  Re: Ordering Search result

:lol: Thank you !

Page 1 sur 1 Le fuseau horaire est UTC [Heure d’été]
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/