Copied to clipboard

Flag this post as spam?

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


  • David Amri 214 posts 740 karma points
    Dec 15, 2017 @ 10:50
    David Amri
    0

    How to add read only property with label data type

    Hi,

    I would like to have a read only property using the label data type. But how would I do this? Where do I add the value of the label?

    Cheers

  • Alex Skrypnyk 6132 posts 23951 karma points MVP 7x admin c-trib
    Dec 15, 2017 @ 11:11
    Alex Skrypnyk
    100

    Hi David

    Label renders the data from datatype - so it's the same value for doctype.

    If you want to have value for each document - I think you need some custom property editor or package.

    Thanks,

    Alex

  • Barry Fogarty 493 posts 1129 karma points
    Dec 15, 2017 @ 11:19
    Barry Fogarty
    1

    If its only used on a single node, you could always use a Textstring initially, set the value and then switch the property editor to Label. Additionally you could use the 'Create Content Template' feature if you need to apply the value to other nodes of the same doctype.

    These are workarounds really, they might be useful, but if you need more flexibility you'd have to look at a custom property editor that fits your use case.

Please Sign in or register to post replies

Write your reply to:

Draft