Developer forum

Forum » CMS - Standard features » Item Publisher - Sort by query

Item Publisher - Sort by query

Nuno Aguiar
Reply

Hi,

 

Using the Item Publisher, how can we order by query string parameters

 

Best Regards


Replies

 
Mikkel Ricky
Reply

You can use the querystring parameters orderby and direction to change the order of the items, e.g.

orderby=Name&direction=desc

The value of orderby is an item field system name and direction can be either "desc" or "descending" (case insensitive).

Best regards,
Mikkel

 
Nuno Aguiar
Reply

Great thanks.

 

This should be in the documenation somewhere. At least I did not find reference to it.

 

Best Regards,

   
Nuno Aguiar
Reply

Hi Nicolai,

 

I got there, but found no reference to the query string option. I could have investigated the fields names and tried them before I asked though :P

 

Best Regards,

Nuno

 

You must be logged in to post in the forum