Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating a component that copies field values from another component

Tags:

tridion

I am trying to create a Component1 in Tridion 2011 SP1. I also have Component2 which has already been created.

While creating a Component1 in Tridion, I have two fields for that Component, one is called 'SelectedType' which is a drop-down having values A,B,C which are options defined in the Schema. The other field called 'Name' which is also a drop-down, but its values should be retrieved from the second Component according to the value selected from 'SelectedType' field.

Component2 has the following fields named 'A', 'B','C'. Each field in Component2 is multivalued and is of type text.

So for example if I Select value 'A' from 'SelectedType' drop-down filed then my 'Name' drop-down field should get populated with the values fetched from field 'A' of Component2.

This functionality should not be implemented by adding any Extensions to the Tridion UI, or using any .NET code.

This should be purely implemented using the available functionality in Tridion.

Is there any scope of implementing event Handlers/Listeners in Tridion which populates values to the next drop-down field when an event has occured for the value change in first drop-down field?

like image 237
User 4.5.5 Avatar asked May 04 '12 10:05

User 4.5.5


2 Answers

This is not built-in functionality of Tridion, so you'll have to write some sort of extension. If you stick to the statement "without a GUI extension or .NET code" then the answer is a simple "no".

If you are willing to consider writing an extension AND you are on Tridion 2011 (or later), then you might be able to get this done using a Data Extender since the dependency you want is between two Components (and not fields within the same Component).

like image 132
Frank van Puffelen Avatar answered Sep 30 '22 13:09

Frank van Puffelen


This will not be possible without creating a GUI extension I'm afraid. This functionality is not currently out of the box with SDL Tridion 2011. This is why the GUI is extendable.

like image 42
Chris Summers Avatar answered Sep 30 '22 11:09

Chris Summers