Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Dynamic querying of translated keywords

Tags:

tridion

I'm trying to use the dynamic query api to determine if components are available in Tridion based upon a users audience manager profile.

One of these fields in their profile is 'Country' - which is recorded as free text in the extended details part of the audience manager profile, but based on a keyword from a 'Countries' category. We cannot store it as a keyword unfortunately due to client requirements.

It's expected that certain forms on the website being developed will be pre-filled using profile information from audience manager, for example pre-selecting a users country from a dropdown menu.

My concern is that if the 'Countries' category is translated in another publication, it would be impossible to pre-populate countries dropdown menus on forms because of the translated country names would be different.

Is that the case, or is it possible to translate and audience manager profile as well?

like image 953
Richard Read Avatar asked Nov 04 '22 23:11

Richard Read


1 Answers

If you can get the local keyword (the Chinese one in your example). From there you can do a "Using Items" look up to find the Parent Keyword. I don't have the specific code, but if you check in the GUI, you can see the parent in the Used Items tab if you do a Where Used on the localised Keyword.

like image 84
Jeremy Grand-Scrutton Avatar answered Dec 04 '22 00:12

Jeremy Grand-Scrutton