Hi,
I have a looong list of taxonomy terms for a website I'm building for a client.
The taxonomy is based on some default hierarchial categories containing a number and a corresponding term. I can't change this, as they are decided elsewhere.
They go sort of like this:
03 term -- 00.00.01 subterm ----00.00.00.05 subsubterm 04 term
The trouble I'm having is with the numbers. I want to separate the numbers so that an admin can just type in the number and get the corresponding term. I can't use the drupal generated unique id's for the terms, so how do I split a term into two terms and keep them together?
Can I somehow split a term into two fields? Or do I have to use related terms in some way? Or two separate vocabularies?
My head is hurting - please help :) Morten
Quoting Morten Holmstrup morten@holmstrups.dk:
They go sort of like this:
03 term -- 00.00.01 subterm ----00.00.00.05 subsubterm 04 term
Will you have :
03 term-1 -- 00.00.01 subterm-1 -- 00.00.01 subterm-2 03 term-2 -- 00.00.02 subterm-1
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
thanks for replying!
no, the numbers are unique. Is that a good thing?
cheers Morten
tor, 14 02 2008 kl. 23:20 -0500, skrev Earnie Boyd:
Quoting Morten Holmstrup morten@holmstrups.dk:
They go sort of like this:
03 term -- 00.00.01 subterm ----00.00.00.05 subsubterm 04 term
Will you have :
03 term-1 -- 00.00.01 subterm-1 -- 00.00.01 subterm-2 03 term-2 -- 00.00.02 subterm-1
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
Quoting Morten Holmstrup morten@holmstrups.dk:
thanks for replying!
no, the numbers are unique. Is that a good thing?
Yes, you've over thunk your problem. It means that "03 term" is actually only one term and not two. You setup the terms to be a single hierarchy and have "00.00.01 subterm" a child of the "03 term".
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
Hello Earnie,
I'm not really sure what you mean?
my point is that I need to separate one term into two, because I need to access both the number "03" and the term "term" separately while maintaining the relation between the two.
Ideally admin would be able set up a term in a form that contains 2 main fields.
number term
so that he could for instance sort a view by numbers or by terms. Or show the end users only the terms and not the numbers, which have no significance for them.
Let me know if I'm totally of course here, and thanks for taking time to answer this problem which is really driving me nuts - I'm on a strict deadline...
cheers Morten
fre, 15 02 2008 kl. 08:56 -0500, skrev Earnie Boyd:
Quoting Morten Holmstrup morten@holmstrups.dk:
thanks for replying!
no, the numbers are unique. Is that a good thing?
Yes, you've over thunk your problem. It means that "03 term" is actually only one term and not two. You setup the terms to be a single hierarchy and have "00.00.01 subterm" a child of the "03 term".
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
Quoting Morten Holmstrup morten@holmstrups.dk:
Hello Earnie,
I'm not really sure what you mean?
my point is that I need to separate one term into two, because I need to access both the number "03" and the term "term" separately while maintaining the relation between the two.
Ideally admin would be able set up a term in a form that contains 2 main fields.
number term
so that he could for instance sort a view by numbers or by terms. Or show the end users only the terms and not the numbers, which have no significance for them.
Let me know if I'm totally of course here, and thanks for taking time to answer this problem which is really driving me nuts - I'm on a strict deadline...
Deadlines are meant to be missed. ;p I don't know that taxonomy is going to work for you. You perhaps need modules views and cck or perhaps you need to write your own module to hook into taxonomy. One other possibility is to use the synonym methods of taxonomy to connect 03 with term03.
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/
Yeah, I figured this wasn't going to be easy :)
I think synonyms might be the way to go, but there's not a whole lotta documentation on it - especially concerning views, which is pretty important, because the "normal" users are not supposed to see the numbers at all - only admin. So I will have to use the synonyms as exposed filters for instance - do you know if this is possible?
I looked into using CCK and it looks extremely tempting, but wouldn't I lose the hirarchy with that?
thanks again for your help!!!
Morten
Deadlines are meant to be missed. ;p I don't know that taxonomy is going to work for you. You perhaps need modules views and cck or perhaps you need to write your own module to hook into taxonomy. One other possibility is to use the synonym methods of taxonomy to connect 03 with term03.
Earnie -- http://for-my-kids.com/ -- http://give-me-an-offer.com/