Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


These support forums are now closed for new topics and comments.
Please head on over to http://eureka.ucommerce.net/ for support.

  • Slava 9 posts 29 karma points
    Nov 10, 2010 @ 18:38
    Slava
    0

    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?

  • Søren Spelling Lund 1797 posts 2786 karma points
    Nov 10, 2010 @ 23:05
    Søren Spelling Lund
    0

    Hi Slava,

    This is a known issue and will be addressed in shortly. 

  • Slava 9 posts 29 karma points
    Nov 11, 2010 @ 12:42
    Slava
    0

    Hi Søren,

    Ok, thanks for informing.

  • Rickard Nilsson 5 posts 25 karma points
    Nov 29, 2010 @ 10:46
    Rickard Nilsson
    0

    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?

  • Søren Spelling Lund 1797 posts 2786 karma points
    Nov 29, 2010 @ 11:02
    Søren Spelling Lund
    0

    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.

  • Rickard Nilsson 5 posts 25 karma points
    Nov 29, 2010 @ 11:20
    Rickard Nilsson
    0

    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.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Nov 29, 2010 @ 11:50
    Søren Spelling Lund
    0

    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.

  • Rickard Nilsson 5 posts 25 karma points
    Nov 29, 2010 @ 14:26
    Rickard Nilsson
    0

    Yes, that's one way of doing it. Not as convenient though.

    Thanks for the quick replies!

  • Søren Spelling Lund 13 posts 13 karma points
    Nov 30, 2010 @ 10:41
    Søren Spelling Lund
    0

    I'll make sure and add your feature request to the todo list.

  • Søren Spelling Lund 13 posts 13 karma points
    Nov 30, 2010 @ 10:57
    Søren Spelling Lund
    0

    Testing 1 2 3.

  • Søren Spelling Lund 1797 posts 2786 karma points
    Nov 30, 2010 @ 10:59
    Søren Spelling Lund
    0

    And one final time.

Please Sign in or register to post replies

Write your reply to:

Draft