sort

Optional for action="list". Ignored by all other actions and type="path". The query columns by wich to sort the tree listing. Any combination of columns from query output can be specified in comma-separated list. You can specify ASC (ascending) or DESC (descending) as qualifiers for column names. ASC is the default. For example:

sort="title ASC, date DESC, contentfield"

Note: By default, the tree nodes are ordered by the table column "sortorder".

<cf_dbtree
instancename="id of the menu"
datasource="name of the datasource"
table="name of the database table"
action="get"
type="linked"
url_type="db"
url="column name"
id="column name"
parent="column name"
contentfield="column name"
titlefield="column name"
sort="title asc">

The Output

 

 

Add your comment to this page Add Comment
Join for a free account, or login if you are already a member.