New xpath element named "move"



The position='move' has been introduced to move an element in an inherited view.

It's used as

<xpath expr="//@target" position="after">
    <xpath expr="//@node" position="move"/>
</xpath>

Or also:

<field name="target_field" position="after">
    <field name="my_field" position="move"/>
</field>

In the above example my_field is placed after target_field in the parent form.

So now we can inherit and have the ability to manipulate fields order in views, not only add new fields.

Comments


Comments powered by Disqus