Hi,
Is there a way to read the ID's and values of a custom datatype (like a dropdownlist) without using the ID of the datatype but the name of the datatype?
I use this custom datatype in a document type and read out the value in XSLT.
For example:
I have a dropdownlist with the following data:
ID Value
1 Test1
2 Test2
3 Test3
In the XSLT I use an if statement and when the contenteditor selects value 'Test1' I need to display some data.
In the current case the ID is stored in the database, so the if statement can't be done on 'Test1' but on ID 1.
Is there a way to read out all the values of the custom datatype so I can store the value in a variable and read that in the if statement?
Kind regards,
Rik
This is a companion discussion topic for the original entry at https://our.umbraco.com/forum/65254-display-custom-datatype-values-in-xslt