Copied to clipboard

Flag this post as spam?

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


  • Ask Sejsbo 12 posts 82 karma points
    Sep 09, 2024 @ 22:49
    Ask Sejsbo
    0

    getting a value in the Block list label editor

    Hi

    I have a block list in umbraco 10.

    The available block, has two properties, "link", and "Exclude"

    exclude is a true/false, and link is a link picker.

    I would like to show the value of "Exclude" in the label when the editor is picking blocks..

    So I tried this:

    {{$index}} - {{ link | ncNodeName}} {{ Exclude | ncRichText }}

    Which actually works. But the "Exclude" part just becomes a 0, or 1.

    I'd like it to output "Exclude" or "Include" depending on the value

    Can someone help me with that?

  • obozna 6 posts 95 karma points
    Sep 10, 2024 @ 08:29
    obozna
    0

    Hi,

    you can try {{ Exclude == '1' ? 'Exclude' : 'Include' }}.

  • Ask 12 posts 82 karma points
    Sep 10, 2024 @ 10:30
    Ask
    0

    Yeah wow, that works!

    Thanks!

Please Sign in or register to post replies

Write your reply to:

Draft