George Lefter wrote: > It seems normal to me - if the default order=0, and I add another action > with order=0, > how can it know that I want it first?
In this case, when same order, it's sorted in an alpha way by default.
If you want specific order of display then don't specify order="0" but
order="1" or order="-1" for your new action
> I forgot to mention that I added the new action in another component -
> in GEIDE.
right.
> Probably we should define explicit order values for actions in Nuxeo, in
> steps of 10.
yes +1 for this. WOrkflow, relations and history already do define them.
> After that, if needed, GEIDE can re-define the order.
exactly.
Note, the system definitely sucks but meets requirements. We will try to
find another way (better way hopefully) later on but the problem is not
that easy to tackle because at the end what matters is the simplicity of
use for the integrators. During Zope3 menuItem development lots of
discussions and AFAIK the order hint is still the one in place...
J.
>
> Julien Anguenot wrote:
>> Hi there,
>>
>> George Lefter wrote:
>>> At the moment, if an action specifies a position (the order attribute)
>>> and the others dont, then the ordering is not correct. (I tried to
>>> create a new action "Content" with order=0, but it was added at the
>>> end).
>>
>> That's not normal. The default action order should 0. It's an actual
>> bug. I suppose it's a regression.
>>
>>> What is the right way to do this? Should we assign default values for
>>> actions that do not specify the order attribute?
>>
>> yep => order=0
>>
>>> Does it help if the default values are in steps of 10 (e.g 0, 10, 20,
>>> 30) ?
>>
>> You only need one default value when not specified. For the order of
>> "default" actions. (i.e : view, modify, history, relations, workflow,
>> etc...). Yes steps of 10 are a good move.
>>
>>> Or maybe use constraints like "first", "last", "after action-id" and
>>> "before action-id"?
>>
>> nope I wouldn't go for that.
>>
>> J.
>>
>
>
--
Julien Anguenot | Nuxeo R&D (Paris, France)
Open Source ECM - http://www.nuxeo.com
Nuxeo 5 : http://www.nuxeo.org
Mobile: +33 (0) 6 72 57 57 66
signature.asc
Description: OpenPGP digital signature
_______________________________________________ ECM mailing list [email protected] http://lists.nuxeo.com/mailman/listinfo/ecm
