Block List Labels: Is there any way to "bubble up" child Block labels?
I have a Block List on a Document Type with 3 available blocks (1Col, 2Col, & 3Col). Each of those three blocks has some inner Block List properties (aka nested Block Lists). For the label on the three main types, I would love to just show the label which is visible on the FIRST nested block. Is there any way to achieve this?
For example, if I choose a block of type "1Col", I can make a Label like this:
Block List Labels: Is there any way to "bubble up" child Block labels?
I have a Block List on a Document Type with 3 available blocks (1Col, 2Col, & 3Col). Each of those three blocks has some inner Block List properties (aka nested Block Lists). For the label on the three main types, I would love to just show the label which is visible on the FIRST nested block. Is there any way to achieve this?
For example, if I choose a block of type "1Col", I can make a Label like this:
I'd like to append the label of the first item in the "Col1Content" property (say, for instance, an RTE, which has it's own custom Label)
I've tried :
Which, I know, was a bit of a long-shot... ;-)
The stored JSON for the property looks like this:
If I un-encode the Col1Content, I get this:
I've tried these as well:
...but nothing ever displays.
Has anyone done something like this?
@HeatherFloyd I've found this article super helpful: https://joe.gl/ombek/blog/umbraco-angularjs-filter-cheat-sheet/
Thanks for that... seems I can look into this:
FYI for anyone looking to do a similar thing...
The syntax to get a property value from only the first nested block item:
ex:
Sadly, I wasn't able to figure out how to get the calculated "label" for the nested items, which would make this more flexible.
i want to enable to select the child in block list
is working on a reply...