Is it possible to order x-data fields in form?

Enonic version: 6.15.4
OS: Windows 10

Hi all,

Is that a way to order the x-data field inside a content type?

Thanks

Hi Fernando,

If the x-data comes from different apps, try changing their order by editing the Site content and reorganize the app list. Haven’t tried this though.

Hi @bwe,

Thanks for the reply, and sorry for late response.

But our problem consists in:

  1. We have a lot of content types that will share many fields.
  2. We grouped that fields in 3 x-datas.
  3. We use the allowContentTypes attributes to all the content types

Ok. Works, but with one problem:

  1. We can not order (visually) how the x-datas are rendered. Is it possible?

PS. We are on the same app.

You should plug in your x-datas via site.xml, then they will be rendered in the same order they are included in site.xml

We test this, but the order not changed.

In site.xml:

<?xml version="1.0" encoding="UTF-8"?>
<site>
    <config/>
    <x-data name="data" />
    <x-data name="gruppe"/>
    <x-data name="meta" />
</site>

In content studio:

Capturar

Hmm, seems you are right and we have a bug. I registered it here, will be fixed in the next release.

3 Likes