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
    7 days ago
    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 66 posts 374 karma points
    6 days ago
    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 2 posts 72 karma points
    5 days ago
    Robert Runge
    0

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

  • Afreed 74 posts 350 karma points
    4 days ago
    Afreed
    0

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

Please Sign in or register to post replies

Write your reply to:

Draft