问题
I am working on a Schema creation in SDL Tridion 2011 SP1. I have struck at one thing.
I have to display three drop downs to user.
- List: Country
- List:State
- List:Location
If the user selects one country in the drop down, need to populate the states according to it. Depending the selected state I have to populate Locations.
I thought of implementing through Categories.
- Created categories to countries
- Created States as Abstract Keywords under for each country.
- Created locations as Normal keywords under every state as normal keywords.
Can any one suggest how to achieve the following:
- I will have three drop downs, for Country, States, Locations.
- If the User selects any Country, the states should be populated accordingly and depending on selected state the locations should be populated.
Do I need to do any customization to tridion or it can be implemented in Tridion directly?
回答1:
Do you really need to select Countries and States? If you select a Location keyword from the taxonomy structure, you are indirectly selecting the Country and State. I would implement this as a single tree type keyword field.
E.g. Select "Dallas" and it will imply that you have selected "Texas" and "USA"
That way you only need one field. In the CME you will see be able to see items classified against USA by including child keywords, and on the Content Delivery side you will be able to query the content.
回答2:
Do I need to do any customization to tridion...
Yes. If you want this exact behavior in the Component editing screen, you would need to implement it in a GUI extension.
来源:https://stackoverflow.com/questions/11031592/dynamic-drop-downs-in-tridion-designing-in-schema-in-sdl-tridion-2011-sp1