Discussion list for developers <[email protected]> on Friday, November 4, 2005 at 4:04 PM +0100 wrote: >Nice to hear you like it!
Yeah, it really saved my day! Thanks to this module I was able to fix a search which sometimes took about 6 minutes to just a few seconds. I almost ended up using a few ugly hacks to somehow create a better search function outside of mmbase, untill I decided to try out this module. I tried your suggestion and the sorting is working like a charm.... thanks! BTW there's a few things I stumbled on while installing the module, so I thought I'd share it so you could add it to the docs for the next release: - web-2.4.xml is not part of the release version of mmbase, so you need to get it out of CVS - to use the samples, you need to have the jstl jars (jstl.jar and standard.jar) in WEB-INF/lib... with tomcat 5.x you can find them in webapps/jsp-examples/WEB-INF/lib/ - at first I was wondering were the indexes are stored... it might be good to mention that they are stored in the tomcat temp directory. Ricardo. > >Sorting should work in the latest version available on mmapps (V1.7.2). > >Basic rule is that the field you want to use for sorting has te be >indexed. >And this is a bit of a hack (because of a limitation i have to fix), you >have to set the type of the field to 'number' to make it text sortable: > >>From configuration: ><field name="title" type="number">sorttitle</field> > >>From jsp: > <lm:sort field="sorttitle" /> > > >Here an example using a date, the type is also important here: >>From configuration: > <field name="modificationdate" type="date" /> > >>From jsp: > <lm:sort field="modificationdate" reverse="true" /> > > >I'm currently working on a new version and will take this 'hack' on >sorting text into account and make it more elegant. -------------------------------------------- Ricardo Kustner IC&S B.V. Stadhouderslaan 57 3583 JD Utrecht The Netherlands http://www.ic-s.nl T: +31 30 6355730 F: +31 30 6355731 PGP-key: http://www.ic-s.nl/keys/ricardo.txt _______________________________________________ Developers mailing list [email protected] http://lists.mmbase.org/mailman/listinfo/developers
