I created custom data type called 'Date', and then added a new property to product definition also called 'Date' (based on new date type). And I wrote next in Display Name on 'Danish(Denmark)' tab - 'Date (format dd/mm/yyyy for example: 01/12/2000)'. This makes it a bit user-friendly.
But the problem is that I still see 'Date' instead of its display name on Common tab when I have some product opened.
Ex: the product xml returned from GetProduct() looks like this: <product index="0" sku="1234" displayName="Foo" shortDescription="" longDescription="" thumbnailImage="1363" primaryImage="0" allowOrdering="False" isVariant="False" displayOnSite="True" hasVariants="False" price="6995,0000" currency="SEK" model="ABC" />
The last attribute 'model' is the property name. The swedish display name for the property is Modell. How do I render it in XSLT or is it a known issue as well?
We've kept the output during XML rendering as simple as possible thus display names are not rendered to the frontend by default, only their values are. You could create your own renderer to handle your scenario. Are you dealing with a multilingual site?
I'm open to adding support for the display names themselves as part of the output.
No, it's not multilingual, but since the property name can't contain non English characters (like åäö or space) I want to display something else to the site user. Localized display name seemed like the right way to go.
I agree that it would be convenient to do it like that. You could go with the good old label-thinking and just put in the values you need directly on the page or using Umbraco dictionaries.
Property Display Name doesn't work
Hi,
I created custom data type called 'Date', and then added a new property to product definition also called 'Date' (based on new date type). And I wrote next in Display Name on 'Danish(Denmark)' tab - 'Date (format dd/mm/yyyy for example: 01/12/2000)'. This makes it a bit user-friendly.
But the problem is that I still see 'Date' instead of its display name on Common tab when I have some product opened.
Am I missing something or it is bug?
Hi Slava,
This is a known issue and will be addressed in shortly.
Hi Søren,
Ok, thanks for informing.
How do I render the above display name in XSLT?
Ex: the product xml returned from GetProduct() looks like this:
<product index="0" sku="1234" displayName="Foo" shortDescription="" longDescription="" thumbnailImage="1363" primaryImage="0" allowOrdering="False" isVariant="False" displayOnSite="True" hasVariants="False" price="6995,0000" currency="SEK" model="ABC" />
The last attribute 'model' is the property name. The swedish display name for the property is Modell. How do I render it in XSLT or is it a known issue as well?
We've kept the output during XML rendering as simple as possible thus display names are not rendered to the frontend by default, only their values are. You could create your own renderer to handle your scenario. Are you dealing with a multilingual site?
I'm open to adding support for the display names themselves as part of the output.
No, it's not multilingual, but since the property name can't contain non English characters (like åäö or space) I want to display something else to the site user. Localized display name seemed like the right way to go.
I agree that it would be convenient to do it like that. You could go with the good old label-thinking and just put in the values you need directly on the page or using Umbraco dictionaries.
Yes, that's one way of doing it. Not as convenient though.
Thanks for the quick replies!
I'll make sure and add your feature request to the todo list.
Testing 1 2 3.
And one final time.
is working on a reply...