Copied to clipboard

Flag this post as spam?

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


  • mizzle 91 posts 326 karma points
    1 week ago
    mizzle
    0

    Block List Label: Show headline of a block or show RTE fields of child block list.

    I have a block that has a block list of its own and I'd like to label it in the list. All fields except the copy of that inner block list's blocks are optional. I can use this:

    {{ heading || tabs.contentData | umbCmsJoinArray:', ':'heading'}}
    

    (from this site)

    but since the "heading" field of the blocks being arrayed is optional, it ends up occasionally labeling the block as ", , , "

    Is there a way to get the RTE copy (stripped of code and truncated) instead of the header text string?

    Using Umbraco 13.4

Please Sign in or register to post replies

Write your reply to:

Draft