Site logo

[Resolved] Elements – Set Up Display Rule to Show only a Parent Page and its Children

Home Forums Support [Resolved] Elements – Set Up Display Rule to Show only a Parent Page and its Children

Home Forums Support Elements – Set Up Display Rule to Show only a Parent Page and its Children

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #2580990
    Jonathan

    Hi there,

    I’m hoping there’s an easy solution here. My goal is to set up a Layout in Elements that hides the primary navigation on a Parent page and the children of that parent page. I could do this manually by adding each individual page, but I’d prefer to set this up dynamically.

    Is there a simple way to do this or do I have to collect every single page?

    #2581067
    Leo
    Staff
    Customer Support
    #2581119
    Jonathan

    That worked like a charm! Is there a way to set Exclusions in the same way? For example, I have a block that I want to display on the entire site EXCEPT for one parent page and its children.

    #2581504
    David
    Staff
    Customer Support

    Hi there,

    you would set the elements display rules to the entire site.
    Then using that same PHP snippet change the $display = true; to $display = false;

    So when the condition is met it will remove the element.

    #2581588
    Jonathan

    Nailed it. Thanks all!

    #2581835
    David
    Staff
    Customer Support

    Glad to be of help!

Viewing 6 posts - 1 through 6 (of 6 total)
  • You must be logged in to reply to this topic.