Sub-Attributes - are they possible

Permalink
Hello Everybody,
Is it possible to create sub attributes?

That is to say attributes that are dependent on other attributes?
I would like to be able to have a category attribute. Then depending on the selected Category then show a relevant subcategory level.

The idea is to have these editable within composer, so the user selects a category then the sub category populates the relevant sub categories.
Ie
Cat 1
-Sub Cat a
-Sub Cat b
-Sub Cat c
Cat 2
-Sub Cat x
-Sub Cat y
-Sub Cat z

The only way I can think of doing this would be to use separate Page Types and then Different attributes for each page type. But I would like to do this with a single page type if possible?

Anybody have any thoughts on this or done anything similar?

*edit
Thinking about this it would be nice, if it was possible to add a select attribute with option Groups that way you can allow the single input box and not worry about them selecting a category, the subcategory would already know what group it belongs too.

TheRealSean
 
frz replied on at Permalink Reply
frz
sounds like a new attribute type to me.


best wishes

Franz Maruna
CEO - concrete5.org
http://about.me/frz
webtodesigns replied on at Permalink Reply
webtodesigns
Hi,

Has there been any update on this?

Would be really help full if it is possible to do so.

-Garen
TheRealSean replied on at Permalink Reply
TheRealSean
I have started to work on a sub category attribute but currently its pretty ropey.

It relies on a select attribute already existing, and then pulls that in as a parent category.

I'm working through debugging some of it today, its sort of at the stage where I have something I can give to my client but would not want to put it in the market place at its current state,

[note and disclaimer]. play with it at your own risk, and try it first on a development site.

http://www.concrete5.org/community/forums/customizing_c5/get-page-i...
webtodesigns replied on at Permalink Reply
webtodesigns
Cheers! I will check it out :)