[Maypole] Sort direction in list template

From: Veljko Vidovic (veljko.vidovic at aero.bombardier.com)
Date: Fri Oct 01 2004 - 17:09:15 BST


Hi

Just a small suggestion for list template.
I've added following lines to show sort direction:

SET additional = additional _ "&o2=desc"
IF col == request.query.order and request.query.o2 != "desc";
link(classmetadata.table, "list", additional,
     classmetadata.colnames.$col);

+IF col == request.query.order;
+ IF request.query.o2 != "desc";
+ "↓";
+ ELSE;
+ "↑";
+ END;
+END;

"</th>";

Veljko

_______________________________________________
maypole mailing list
maypole at lists.netthink.co.uk
http://lists.netthink.co.uk/listinfo/maypole



This archive was generated by hypermail 2.1.3 : Thu Feb 24 2005 - 22:25:56 GMT