I set up my own grid editor with LeBlender, and I want to add the Approved Color Datatype to it. I already added the colors of choice, but I'm not able to access its value from mypartial view. What I have in my partial template is the following:
Thank you very much!
That worked perfectly!!! And something so simple :)
Perhaps you can give me an extra help with something else: I'm creating another grid editor, and one of the parameters is a link which I configured to be inputed as a text string. I'm using this format:
but somehow I get this message: Object reference not set to an instance of an object.
I've tried many ways to put this to work, but so far none worked out. Do I need to use any other property type (not text string)? I tried ti use Related Links, but it didnt work as well
How to get the value from Approved Color
Hi guys!
I set up my own grid editor with LeBlender, and I want to add the Approved Color Datatype to it. I already added the colors of choice, but I'm not able to access its value from mypartial view. What I have in my partial template is the following:
How can I get the color code picked from the Approved Color?
Many thanks!
Please help! I've been trying to find a solution for the past days but so far didnt found any! Would really appreciate some help on this!
Thank you very much!
Hi Nelson
Have you tried with the following?
I think the Approved Color datatype returns the selected value without hex "#".
/Bjarne
Thank you very much! That worked perfectly!!! And something so simple :) Perhaps you can give me an extra help with something else: I'm creating another grid editor, and one of the parameters is a link which I configured to be inputed as a text string. I'm using this format:
but somehow I get this message: Object reference not set to an instance of an object.
I've tried many ways to put this to work, but so far none worked out. Do I need to use any other property type (not text string)? I tried ti use Related Links, but it didnt work as well
Thank you very much! Really appreciate your help!
It is probably because item.GetValue
Which datatype are you using for the link? If it is an internal link you can use Content Picker, which store a node id.
First you should check that this return a value (in /App_Data/umbraco.config you should be able to find something like < link>1234< /link>
as default it is of type string, so the same as
the latter specify the output type: https://our.umbraco.org/documentation/Reference/Templating/Mvc/views
/Bjarne
is working on a reply...