[OBSOLETE] Referenced scheme with type

Would it be possible to also give the type to a referenced schema?

An example:

Instead of:

contents": {
    "iv":[
       "string"
    ]
}

Something like that:

"contents": {
    "iv":[
      {
         id: "string",
         schema: "htmlContent"
      },
      {
         id: "string",
         schema: "htmlContent"
      },
      {
         id: "string",
         schema: "mapData"
      }
    ]
}

This would be an advantage if different schemas were linked to a reference.

Greetings Andreas

In theory yes, but this would be a breaking chance that is hard to solve. What do you need it for?

To simulate the CMS functions with a conventional cms.

Enclosed a video for editing.

In order to recreate this scenario in dotnet core, I had to query every schema and see if there was content with this ID.

It would be easier if you had the name of the scheme, then you could go directly to this scheme.

For smaller pages that only have text and little other content, this is still possible. With more complex solutions, the effort is quite large.

So go do it, it’s more a question.

I already had this discussion a few times, not sure with whom.

You do not have to do this. You can just use this endpoint and use all ids you get: https://github.com/Squidex/squidex-samples/blob/master/csharp/Squidex.ClientLibrary/Squidex.ClientLibrary.Tests/QueryTests.cs#L32

For each content you also get the schema name.

oha … I didn’t understand the logic behind it …!

that works: D

sorry, the whole thing is completely done.

Greetings Andreas

1 Like

So I can close this?

Yes :smiley:

I think I have to do a little demo :slight_smile: