Multi-select of referenced schemas?


#1

Hi Sebastian,

I prototyping a site “page” content model, to which I can add a list of nested component (a group of fields).

One of the nested fields is a "reference schema field. However, I want to select a set of schemas, a mixed list of what I deem editorial content types (for example - article, story, blog, generic, etc).

Is there a method to set this reference field to validate against a list of types? A multi-select of the schemas allowed on the validation?

If this has been discussed before, please point me to the prior convo.


Secondary question
When rendering a list of references displays a list of names on the parent content form. I would rather show name along with an icon/graphic/image of my referenced schema.

An ask of me as I evaluate this tool was to shakedown a bit of its usability by just a marketing team. When a marketing editor is managing pages/layout schema, we want to give visual cues to how the page is structured. Thus, as I said, displaying the static graphic of a component schema (i.e. angular/react) in the Squidex UI.

Can you describe if such a thing would be possible? I imagine I would need to build the squidex code from scratch myself and tweak the logic underneath. I believe this ask lies outside the realm of a custom editor.

If the only way is to create a “preview” of the schema (page), then I would have to investigate this building out the preview link.

Thanks,
Wesley


#2

Hi,

thanks for your feedback.

About the first question: It is not possible (yet?). The reason is that content items do not have a generic name attribute, something that can be used to display them. If you would reference multiple schemas there is no good way to show them in a good way in the table layout that we have at the moment.

About the second question: Is it related to this feature request: One-to-many relationship display on Content section ??


#3

I really dig this feature as well :slight_smile: i guess this could doable if this is getting implemented Schema content part / mix-ins / inheritance / snippets ?


#5

@arnfasto: How would this help?


#6

@Sebastian if you introduce inheritance in schemes, a content reference could be to the parent scheme and by that be able to reference all its children. This would also ensure that the have the same name that could be be showed in the table layout.

It would make sense in the setup that we are running, where most of the models/schemes has the same fields, and we would like to be reference all the different types contents without having to create a field per content type


#7

I was thinking about inheritance and my idea so far is to introduce variations within a schema, so you could have a variation called “X” which has some fields defined that are only valid if this variation is chosen.