title: Joomla Template - How can I auto hide a sidebar when there's no module?
body: <p>I'm creating a new template in Joomla 3.0 and i'm having a problem with the sidebar. I want configure a flexible sidebar, like the one in the Prostar template and other, with the flexibility to hide when there's no module in the sidebar. </p>
  
  <p>You can see what i mean in the example below. 
  Image 1</p>
  
  <p><img src="https://i.stack.imgur.com/iejeq.png" alt="with-modules"></p>
  
  <p>Image 2</p>
  
  <p><img src="https://i.stack.imgur.com/d5fNK.png" alt="no-modules"></p>