Home
The Toolkit for Online Communities
13562 Community Members, 0 members online, 1951 visitors today
Log In Register

Forum OpenACS Q&A: Re: Using list-builder and order by

OpenACS Home : Forums : OpenACS Q&A : Re: Using list-builder and order by : One Message

+
Posted by Dave Bauer on
Oops,

I left out part of it.

In template::list::create you need to pass in the spec for which elements can be ordered.

-orderby {
   element_name {orderby column_name}
}

You can optionall specify addition attributes for the orderby including the default direction. The full doc of what you can specify is in the api-doc for template::list::orderby_create.