There are two dropdowns for my customization. One of which gets populated with 1 st level Keywords (K1, K2, K3) -(ie if "C" is the cateogory , I have K1 , K2, K3 . These are abstract Keywords. Under K1 I have A1,A2,A3 normal Keywords. K2 has B1,B2,B3 . K3 has C3,C4,C5 ). The second dropdown gets populated based on the selection of First dropdown. If I select K1 then 2nd dropdown has A1,A2,A3. I am currently achieving this by doing the following -
- Dropdown 1 loads when I load the category list (var list = category.getListKeywords();) [K1, K2, K3 ]
- For dropdown 2 ,for instance dropdown 1 value is K1, I pass the keyword object of K1 and get the using items. var list = keywordObj.getListUsingItems(new Tridion.ContentManager.ListFilter(), false, false);
The second dropdown doesn't load if the user does not have permission to the publication where I have created the cateogory "C". It says no permission to read item tcm:xy-abc-def".
The getListUsingItems returns A1,A2,A3 Keywords tcmids but they are not from the context publication.
I can re-form the keyword tcm id by using the context publication Id. But I wanted to know if there is any other way to get the child-keywords inside an abstract Keyword.