title: Joomla if else for menu by ID or url
body: <p>I have a situation whereby i want two of my pages to look different form the rest but they are not front pages. If they were it would be easy as the code below would do the trick.</p>
  
  <pre><code>$menu = &amp; JSite::getMenu();
  if ($menu-&gt;getActive() == $menu-&gt;getDefault()) {
  echo 'This is the front page';
  
  esle(do something else)
   }
  ?&gt;
  </code></pre>
  
  <p>In short i want a similar approach but this time, to get the menu by ID/URL. Any ideas?</p>