title: Load module from specific place (magento)
body: <p>I am trying to override a core module on the Magento Platform. </p>
  
  <p>This is absolutly no problem. 
  I've made a simple module for it and it's loaded by default through the etc/modules/...xml file. But what I would like is to:</p>
  
  <p><strong>Call the module only on category pages.</strong> </p>
  
  <p>Does anybody know if it is possible to call (define, set) a module from a template file?</p>
  
  <p>How can I get it to load only on a particlar template file, or only on the category pages in that matter?</p>
  
  <hr>
  
  <p>I am currently trying things out, but still cant wrap my fingers around the right code.
  I think an if/else statement is right for the core module currency.php, but mayby you guys can help me out. </p>
  
  <p>*<em>This is what I was thinking, see the order not the code ;) *</em></p>
  
  <pre><code>&lt;?php
  class MyCompany_ConstPrice_Model_Currency extends Mage_Directory_Model_Currency
  {
  public function __A_NAME_() 
  if(Mage::app()-&gt;getFrontController()-&gt;getRequest()-&gt;getRouteName() == 'catalog') :
  elseif:
  $this-&gt;_redirectReferer(Mage::getBase()); 
  
  Rest of code....
  ?&gt;
  </code></pre>