Copied to clipboard

Flag this post as spam?

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


  • Manish 373 posts 932 karma points
    Jan 24, 2017 @ 09:25
    Manish
    0

    How to use label data type in umbraco

    Hi

    How can i use label data type in umbraco to store default value, is there any post video or article for this.

    Thanks

  • Sven Geusens 169 posts 881 karma points c-trib
    Jan 25, 2017 @ 16:51
    Sven Geusens
    0

    Hey Manish

    As far as I know you can only set the value of a label trough the services. If you want to put example data somewhere you should put it into the description of the property.

    If you want to fill in property data with defaults if the user doesn't fill in anything, then you have to hook into the saving event and use the contentservice

    https://our.umbraco.org/documentation/reference/events/contentservice-events

    Read the last section in the article to determine if its a new document or not.

Please Sign in or register to post replies

Write your reply to:

Draft