title: Determining which section is being viewed
body: <p>Folks, I am trying to implement a rudimentary feature in Joomla but having no luck getting my head around it.</p>
  
  <p>My client has setup Joomla with several sections; each section having its own categories and eventually content underneath.</p>
  
  <p>I need each section to have a slightly different color component (e.g. Section A and its all subsequent child pages red, Section B - blue, etc); certain borders and backgrounds need to be unique according to each section.</p>
  
  <p>I have one theme which is used by all sections. Somewhere in the theme file, I need to detect which section I am on, and based on that set a css variable accordingly:</p>
  
  <pre><code>&lt;html&gt;
      &lt;body class="cars-section"&gt;
  
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>All I need is to set my body's class to the right section, and all my coloring has been setup to work magically.</p>
  
  <p>Any ideas how this can be done in the Joomla world? Is there another way of doing such a thing.</p>