Set of Attribute Sets?

Permalink
I have begun brainstorming on a project and I need some feedback from the community. One of the limitations I found that is preventing me from moving forward is the inability to attach attribute sets to attribute sets. See below.

Component (attribute set)
...Name (text)
...Type (list)
...Weight (num)

Product (attribute set)
...Name (text)
...Set of Components (attribute set)

I am looking into creating a custom attribute that is a set of selected attribute set. When I edit an Attribute Set, I should be able to attach attribute sets in addition to existing attributes.

I am open to different approaches to accomplishing this. My above example is very simple compared to the level of complexity I am brainstorming. In one particular case, I wish to go three levels deep into attribute sets. All feedback is appreciated.

Nirgali
 
Remo replied on at Permalink Reply
Remo
I thought about nested sets before. Not just attribute sets, but sets in general. Having nested sets in the file manager would be great as well.

It should be possible to create an add-on which adds the ability to add attributes to sets. I know that the guy behind the c5 community in Germany has created an add-on which allows you to attach attributes to group. Doing the same for attribute sets should work too.

If you're looking at something quicker (but a bit hacky). You might be able to create your sets like this:
- Component
- Product
- Product/SetA
- Product/SetB
..

This way the name defines the hierarchy of the sets, you'd only have to create a new UI.. But as I said, this would be rather ugly..
Nirgali replied on at Permalink Reply
Nirgali
I'm new to addon development and I am trying to usehttp://www.concrete5.org/marketplace/addons/fileset-attribute/... as a base for accomplishing this. I'm in dev ops so I know enough to hack but not enough to write something from scratch. It will take me a while to figure this out.
Remo replied on at Permalink Reply
Remo
I don't think that will work. This is just an attribute that allows you to select an attribute set, but not the other way round.

By default, you can use attributes on users, file and pages (collections). Here's the missing part, you can assign this new attribute type to a set.
Nirgali replied on at Permalink Reply
Nirgali
I'm not certain I fully understand your explanation. I've been digging through the code and the documentation and there is a lot to learn before I think I can pull this off with a simple addon.