Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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?
Hi,
you can try {{ Exclude == '1' ? 'Exclude' : 'Include' }}.
Yeah wow, that works!
Thanks!
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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?
Hi,
you can try {{ Exclude == '1' ? 'Exclude' : 'Include' }}.
Yeah wow, that works!
Thanks!
is working on a reply...