title: How to hide navigation menu in pages that are hidden in Navigation Menu in Liferay?
body: <p>In other words, I want to hide the navigation menu from the other private pages that have checked the option <code>Hide from Navigation Menu</code> in Control Panel.</p>
  
  <p>In my theme, I am showing the navigation menu on private pages only:</p>
  
  <pre><code>&lt;#if layout.isPrivateLayout()&gt;
      &lt;#if has_navigation &amp;&amp; is_setup_complete&gt;
          &lt;#include "${full_templates_path}/navigation.ftl" /&gt;
      &lt;/#if&gt;
  &lt;/#if&gt;
  </code></pre>
  
  <p>And I want to further hide it in some of the private pages (the ones that the users open as a hyperlink). They are not part of the navigation menu as I have checked the option <code>Hide from Navigation Menu</code> - but the navigation menu does show up in them.</p>
  
  <p>If there is no direct way of doing this, how can I get the page name and set the Navigation menu to not display in those pages.</p>
  
  <p>I am using Liferay 7 CE GA2 but I believe this is a generic question.</p>