3

Note: I am using SDL Tridion 2011 SP1.

I have created a schema with a multi-value embedded schema. The embedded schema contains 2 fields:

component - a component link (any schema allowed) component_template - a list of allowed component templates for the selected component

Wrapper component fields

What I want to do is use the selected component to determine the allowed component templates and expose a list of allowed templates for selection as a drop-down list for component_template.

This replicates the functionality of a component presentation list on a page but within a component.

3

The functionality you seek cannot be accomplished using the event system. If you want to change functionality based on the linked component, you should look into GUI Extensions or maybe you can work with a Custom URL. Although I'm not sure the latter is able to take other fields into account.

Also by default Tridion is not able to show a dropdown of component templates, so you really need a GUI Extension. Maybe you should look at your problem again and try to figure out a different approach!

WAS: Tridion provided a matrix to all available events in Tridion 2011+ compared to the old VB6 event system.

  • Hi MrSnowflake, Thanks for your response. Should I be using 'OnComponentResolvePre' for my example then? If so, do you know where I should look for resources on creating a custom resolver? – John Askew May 20 '14 at 12:56
  • Custom resolvers are pretty simple to create - if you google for "Tridion Custom Resolver" you'll find quite a few examples and blog posts – Nuno Linhares May 20 '14 at 14:21
  • Bart Koopman explained you do have access to the full collection of fields (tridion.stackexchange.com/a/2099/46). In terms of GUI Extension, his Item Selector extension would be worth looking into. We can even contribute to the open source project for it--"template selection based on X" sounds like a useful feature. – Alvin Reyes May 21 '14 at 5:50
2

It seems that GUI Extensions is what I need to implement for this example as it can't be achieved with the Event System.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.