What I am trying to achieve is a dynamic Dexterity Add/Edit form based on context but I''m not sure that this is possible, yet. Thus:
Let's say that I have the following folder site structure:
Now, I will define a MagicItem Dexterity c-type with this IMagicBehavior enabled.
This IMagicBehavior should return a set of fields when I add the MagicItem within Cars, another one when I add it within Cats and yet another one when adding within Kids > Shoes
The info for this custom schema is somehow available on each section.
The site structure grows exponentially, thus adding custom content-types for each site section is not an option.
collective.taxonomy does some dynamic magic stuff in this direction, but it's quite hard to follow.
Thus, I would appreciate if someone has a better example, or can help somehow with this.