Copied to clipboard

Flag this post as spam?

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


  • Paria 5 posts 25 karma points
    Jan 24, 2025 @ 12:12
    Paria
    0

    Accessing to BlockGrid contents for label

    I'm trying to show content value in the label of BlockGrid, I have tried a lot of ways but none are working, my config is like this: enter image description here

    enter image description here

    I tried this in the label, but no result:

    {{HeadingComponent.Heading}}
    {{Content.HeadingComponent.Heading}}
    {{$Content.HeadingComponent.Heading}}
    {{Heading}}
    

    Any suggestions?

  • npack 68 posts 378 karma points
    Jan 24, 2025 @ 23:42
    npack
    0

    I think in v13 and earlier you have to use angularJs syntax. Here is a good blogpost about some common label syntax situations https://joe.gl/ombek/blog/umbraco-angularjs-filter-cheat-sheet/

    It looks like in your case you ought to try the word 'heading' in lower case.

    {{heading}} {{heading.length > 0 ? heading : "Heading"}}

  • Robert Runge 3 posts 73 karma points
    Jan 26, 2025 @ 07:28
    Robert Runge
    0

    In the screen shot shown above, the property name is “Test” and not “Heading”. Could that be the problem?

  • Afreed 86 posts 383 karma points
    Jan 27, 2025 @ 04:14
    Afreed
    0

    Yes, alias should be used inside {{}} (example : {{heading}})

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

Please Sign in or register to post replies