Re: [Developers] position calculation in editwizard lists

2007-08-10 Thread Michiel Meeuwissen
2007/8/10, Nico Klasens <[EMAIL PROTECTED]>: > > "http://www.mmbase.org/dtd/wizard-schema_1_0.dtd";> > orderby="[EMAIL PROTECTED]'pos']" ordertype="number"> > > > > {sum(//[EMAIL PROTECTED]'posrel' and > @lastitem='true']/[EMAIL PROTECTED]'urls']/../[EMAIL > PROTECTED]

[Developers] position calculation in editwizard lists

2007-08-10 Thread Nico Klasens
Hello, For a long time, I struggled with position calculation in lists. The xpaths we used never worked nice. The issue was that the position was caluclated on all lists with the same role and not the one where the item was added to. Finaally, I found one which works so I thought I share this