title: Joomla load module on extra place?
body: <p>On my k2 pages I needed module complete on the top area, a module assign is not possible because the pages are dynamicly from the DB selected. So I installed a module like "loadmodule", the difference is simple I can get module with specific id.</p>
  
  <p>For example: <em>{loadmodulefromarticle|97}</em> if I use it in the extra fields or in the content area then it works, but as written I need it in the top area of my page, so I have an if request and try load k2 content on the top. I get content and that's ok. But I see here only plain text and the module is not loaded. My question is, what is to insert here so that I get the module loaded? I think it can be something around to <em>$result;</em></p>
  
  <pre><code>&lt;?php
      $menuID = JSite::getMenu()-&gt;getActive()-&gt;id ;
  
      if ($menuID == '713') {
  
          $db = JFactory::getDbo();
          $query = $db-&gt;getQuery(true);
          $query-&gt;select('introtext');
          $query-&gt;from('#__k2_items');
          $query-&gt;where('id = ' . JRequest::getInt('id'));
          $db-&gt;setQuery($query);
          $result = $db-&gt;loadResult();
  ?&gt;
                  &lt;div id="gkHeaderMod"&gt;
                      &lt;div&gt;&lt;?php echo $result; ?&gt;&lt;/div&gt;
                  &lt;/div&gt;
  &lt;?php
  }
  ?&gt;
  </code></pre>