HTDL-Andrew
(Andrew Hopkins)
October 17, 2025, 9:57am
1
I’ve already seen the same question in extending Umbraco 16 with Umbraco Flavoured Markup, however, I’m not up to speed with web components and the solution used in the threads. I also have a ‘isBlockVisible’ toggle in all my block settings which I used to display in Umbraco 13 to the user in the label using:
{{$index}}. {{title}} {{$settings.isBlockVisible ==‘0’ ? ‘[HIDDEN]’ : ‘’}}
My question is can you do this in UFM now in Umbraco 17 BETA directly in the label? If not will it be in the final release?
I’m currently using:
{umbValue: title | fallback : N/A}
but really need to display to the user that the block has been hidden in a simple straightforward solution.
Thanks
jacob
(Jacob Overgaard 🚀)
October 17, 2025, 11:25am
2
Without having your setup locally, it isn’t easy to test, but you could try something like this:
${ $index + 1 }. {=title} ${ $settings.isBlockVisible == "0" ? "[HIDDEN]" : "" }
That’s a mix of UFM ({ expression }) and UFMJS (${ expression })
{= property }: UFM, shorthand for {umbValue}
${ property }: UFMJS, javascript-like expressions such as math and booleans
HTDL-Andrew
(Andrew Hopkins)
October 17, 2025, 11:48am
3
Thank you so much Jacob, the settings expression works . The index I get not a number, NaN, but the main thing is being able to show to the user that the block has been hidden. ATB A
jacob
(Jacob Overgaard 🚀)
October 17, 2025, 11:50am
4
Oh yeah, my bad around $index. It is a feature targeting 16.4, which is out soon:
opened 03:30AM - 13 Oct 25 UTC
closed 06:46AM - 14 Oct 25 UTC
type/bug
affected/v16
release/16.4.0
### Which Umbraco version are you using?
16.2.0
### Bug summary
A loved featu… re of the Block List in V13 was the ability to include the position / index of the block within the label.
We would use this to create labels like "Slide 1", "Slide 2" – or mostly as a fallback "Item 1" when the regular label had no value.
Since the introduction of UFM this has disappeared 😞
### Specifics
A little look through the new block label rendering code shows the index isn't being passed down into `umb-block-*-entry` and therefore not to the block view either.
As far as I can tell this means there is no way to find the position of a block, custom view or otherwise
### Steps to reproduce
N/A
### Expected result / actual result
It would be awesome if we could continue to render the block position in block views / labels.
I'm not fussy about the syntax, but previously the block editors injected "special" $ prefixed props for this type of thing – which I can imagine could be used in UFM Expressions like so: `${title || 'Item ' + $index}`
HTDL-Andrew
(Andrew Hopkins)
October 17, 2025, 12:08pm
5
I using Umbraco 17 Beta, so hopefully by the RC1 or release it will be added? A
jacob
(Jacob Overgaard 🚀)
October 17, 2025, 12:55pm
6
Yes, should be available in the first RC.