3

I would like to build up a tree of components in a component as shown below. This would require an embeddable schema setup in which it would have a component link field and an embeddable schema which would link to itself. Is this possible in Tridion?

enter image description here

Of course alternatively I can do this by component-linking Component AA and Component AB from Component A and so on. In that approach these loose components themselves will have to include their children components.

But this is not what I want as I would like to define the relationship between all the Components in a single Component.

2
  • 1
    Welcome to Tridion Stack Exchange. Your question seems similar enough to actually our very first Q&A on this site. :-) Check it out and let us know if the two are close enough to note this one as a duplicate: tridion.stackexchange.com/questions/1/… Commented Jan 8, 2021 at 15:34
  • If you share more information about the problem you are trying to solve, you might get more insights into possible ways to model your functional scenario in Tridion Commented Jan 13, 2021 at 10:03

2 Answers 2

4

If you build an embedded schema model deeper than two levels, you will find that it is nightmare to use in the gui. I sugest that you look at category and keyword navigation design pattern instead, which will let you build a tree of relationships you are looking for.

Add a metadata schema to manage any additional properties you need,

https://docs.sdl.com/783502/676687/sdl-tridion-sites-9-1/intelligent-navigation

1
  • this is actually a great idea
    – Marko Milic
    Commented Jan 9, 2021 at 20:32
3

There is no supported recursive schemas option in Tridion. You have to define schemas for each level and then link them.

Sorry to break your heart, but sometimes Tridion is cruel and is not kind to navigation items. A lot of us have tried different approaches and most of them are semi-hard-coded with a lot of assumptions.

6
  • You can have a schema that allows component links to components based on the same schema...tridion.stackexchange.com/questions/1/…
    – Nuno Linhares
    Commented Jan 8, 2021 at 15:51
  • 1
    Yes. I should correct myself. I was talking about embedable schema referencing itself. That is not allowed.
    – Marko Milic
    Commented Jan 8, 2021 at 15:53
  • Because he was looking for a single component solution
    – Marko Milic
    Commented Jan 8, 2021 at 16:00
  • 3
    Note that Tridion is not as cruel as not allowing recursively nested elements at all in a Schema, but it will qualify your Schema as “complex” and as a result, you won’t be able to use the fields editor; you can only edit the raw XML in the CME. This is now deprecated. Consider other options. Commented Jan 9, 2021 at 9:14
  • 1
    FYI: I believe a standard GUI-friendly (or non-complex) Schema is called a "web" Schema, which coincidentally has nothing to do with "SDL Web." Commented Jan 19, 2021 at 23:34

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.