enonic / app-modelstudio

Developer Studio for Enonic XP
GNU General Public License v3.0
0 stars 0 forks source link

X-data references missing from visualization? #222

Open sigdestad opened 1 year ago

sigdestad commented 1 year ago

When installing HMDB, I was expecting to see SocialMedia X-data linked to person and movie content types, but can't see any refs?

Do we parse site.xml to discover these "references" yet?

reisfmb commented 1 year ago

@sigdestad

The visualization currently does not look at site.xml to discover new references.

The references are discovered based on the usage of <allow-content-type> and <allow-on-content-type> tags in the schemas and components that lib-schema provides inspection, which are:

schemas: CONTENT_TYPE, MIXIN or XDATA components: PAGE, PART or LAYOUT

As can be seen here, it also provides inspection of site.xml, so it'd be possible to discover new references there.

@alansemenov should I proceed to implement that new feature?

If so, what is the tag structure that can be used in site.xml to create references?

In the case for hmdb app @sigdestad mentioned, site.xml had:

<x-data name="SoMe" allowContentTypes=".*:person|.*:movie"/> <x-data name="spotlight" allowContentTypes="media:image"/>