title: Joomla 2.5 - Is it possibile to load system messages inside jdoc content?
body: <p>I have the following code:</p>
  
  <pre><code>&lt;div id="content"&gt;
      &lt;?php if(count($app-&gt;getMessageQueue())) { ?&gt;
          &lt;jdoc:include type="message" /&gt;
      &lt;?php } ?&gt;
      &lt;jdoc:include type="component" /&gt;
  &lt;/div&gt;&lt;!--#content--&gt;
  </code></pre>
  
  <p>Everything works fine expect when there are error or system generated messages. When they are presented output looks like:</p>
  
  <pre><code>&lt;div id="content"&gt;
      Some error messages
      &lt;h1&gt;Some page title&lt;/h1&gt;
      &lt;p&gt;Some content&lt;/p&gt;
  &lt;/div&gt;&lt;!--#content--&gt;
  </code></pre>
  
  <p>I want to they looks like:</p>
  
  <pre><code>&lt;div id="content"&gt;
      &lt;h1&gt;Some page title&lt;/h1&gt;
      Some error messages
      &lt;p&gt;Some content&lt;/p&gt;
  &lt;/div&gt;&lt;!--#content--&gt;
  </code></pre>
  
  <p>So error messages should be below h1 tag and before p tag. How to achieve that without hacking core files?</p>