Join Discord
Communities
Powered by
Looping over a block editor label in Umbraco
# help-with-umbraco
s
svampefett
04/16/2024, 7:42 AM
[SOLVED] This helped me:
https://our.umbraco.com/forum/using-umbraco-and-getting-started/110595-block-list-labels-is-there-any-way-to-bubble-up-child-block-labels
--- Original post -- So i have a block list, and i want to get a value from the elements underneath as a label for the parent. I tried using .map, but that did not work. I see that some people use .split and .join, so does the field support Javascript or not?
https://cdn.discordapp.com/attachments/1229698414103760937/1229698414749421608/image.png?ex=6630a0e4&is=661e2be4&hm=36e2c109e58068f29b3e8d2e6d2af5bb205d772cc2744ddaf4af909984b4c955&
https://cdn.discordapp.com/attachments/1229698414103760937/1229698415345008660/image.png?ex=6630a0e4&is=661e2be4&hm=489ccfb0e67929af46b5984340a00cfa253dd0ea1bf6b513c84d011395b045d7&
svampefett
04/16/2024, 7:43 AM
I tried this:
https://cdn.discordapp.com/attachments/1229698414103760937/1229698783877795912/image.png?ex=6630a13c&is=661e2c3c&hm=a80c1fc32b417b97d45eed85ab428c69fbbc9f67fef7cd05758313be771d8c48&
svampefett
04/16/2024, 7:48 AM
Figured it out:
https://cdn.discordapp.com/attachments/1229698414103760937/1229699895875866665/image.png?ex=6630a245&is=661e2d45&hm=638cb824d2ba533b3578c95f49cdfb44941dff9149dd6d0573984bf1b2324d58&
svampefett
04/16/2024, 7:48 AM
This helped me:
https://our.umbraco.com/forum/using-umbraco-and-getting-started/110595-block-list-labels-is-there-any-way-to-bubble-up-child-block-labels
Previous
Next