Copied to clipboard

Flag this post as spam?

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


  • MuirisOG 382 posts 1284 karma points
    May 23, 2017 @ 09:38
    MuirisOG
    0

    Problems with umbraco:item recursive and useIfEmpty attributes

    Hi everyone,

    I've tested this in v7.5.2 and v7.5.13

    <umbraco:Item field="content" recursive="false" textIfEmpty="test" runat="server" />
    

    The recursive option was not set originally, but the page still displayed the value contained in the parent page field when viewed in the browser. I tried setting the attribute to recursive="false" but it still displayed the value in the parent page.

    I tried using the textIfEmpty attribute but this didn't work either, the umbraco:item continued to output the value in the parent page.

    So, what did work was to put the following into the page content field (which I should mention is an RTE field): <p>&zwnj;</p> i.e. it stopped the parent page field from being output.

  • Flash 9 posts 62 karma points
    Jul 26, 2017 @ 11:13
    Flash
    0

    I've just come across this also.

Please Sign in or register to post replies

Write your reply to:

Draft