Kentico Visible Webpart on parent page and hidden on child page

This should be returning true and display the field when I'm on this page /My-Parent/Tester and will hidden this page when page is /My-Parent.

{% if(CurrentDocument.NodeLevel == 1 && ViewMode == "LiveSite") { return false; }  #%}

Comments

Popular posts from this blog

HTML5 video loop src change on end play function

Set limit wp_nav_menu

Calculate percentage of a specific element has been scrolled into visible on the screen