title: In Joomla 2.5, How can I add category images and Title in the "list all categories" layout
body: <p>In Joomla 2.5.8, I've created a menu item that uses the "List All Categories" type. I'm wanting to display the image AND Title for the parent category and the images for each subcategory as follows:</p>
  
  <p>-- Parent Category Image --  </p>
  
  <p>Parent Category Title
  Parent Category Description</p>
  
  <p>SubCategory1 Title
  Subcategory1 Image -- SubCategory1 Description</p>
  
  <p>SubCategory2 Title
  Subcategory2 Image -- SubCategory2 Description</p>
  
  <p>SubCategory3 Title
  Subcategory3 Image -- SubCategory3 Description</p>
  
  <p>SubCategory4 Title
  Subcategory4 Image -- SubCategory4 Description</p>
  
  <p>I'm working in the file template/html/com_content/categories/default.php and I've tried copying the code from the blog.php file:</p>
  
  <pre><code>&lt;?php if ($this-&gt;params-&gt;get('show_description_image') &amp;&amp; $this-&gt;category-&gt;getParams()-&gt;get('image')) : ?&gt;
              &lt;img src="&lt;?php echo $this-&gt;category-&gt;getParams()-&gt;get('image'); ?&gt;"/&gt;
          &lt;?php endif; ?&gt;
  </code></pre>
  
  <p>But it breaks the page and loads a blank page. The titles of the subcategories and their descriptions show, I'm just missing the parent title and the images.</p>
  
  <p>In the options for the menu item I have the category title, description and image all set to show.</p>
  
  <p>Any help on this would be greatly appreciated.</p>
  
  <p><strong>here's the deafault.php code:</strong></p>
  
  <pre><code>&lt;?php
  /**
   * @package     Joomla.Site
   * @subpackage  com_content
   * @copyright   Copyright (C) 2005 - 2012 Open Source Matters, Inc. All rights reserved.
   * @license     GNU General Public License version 2 or later; see LICENSE.txt
   */
  
  // no direct access
  defined('_JEXEC') or die;
  
  JHtml::addIncludePath(JPATH_COMPONENT.'/helpers');
  
  ?&gt;
  &lt;?php if ($this-&gt;params-&gt;get('show_page_heading')) : ?&gt;
                  &lt;h1&gt;
                      &lt;?php echo $this-&gt;escape($this-&gt;params-&gt;get('page_heading')); ?&gt;
                  &lt;/h1&gt;
                  &lt;?php endif; ?&gt;
                  &lt;?php if ($this-&gt;params-&gt;get('show_base_description')) : ?&gt;
                      &lt;?php   //If there is a description in the menu parameters use that; ?&gt;
                          &lt;?php if($this-&gt;params-&gt;get('categories_description')) : ?&gt;
                              &lt;?php echo  JHtml::_('content.prepare', $this-&gt;params-&gt;get('categories_description'), '', 'com_content.categories'); ?&gt;
                          &lt;?php  else: ?&gt;
                              &lt;?php //Otherwise get one from the database if it exists. ?&gt;
                              &lt;?php  if ($this-&gt;parent-&gt;description) : ?&gt;
                                  &lt;div class="category-desc"&gt;
                                      &lt;?php  echo JHtml::_('content.prepare', $this-&gt;parent-&gt;description, '', 'com_content.categories'); ?&gt;
                                  &lt;/div&gt;
                              &lt;?php  endif; ?&gt;
                          &lt;?php  endif; ?&gt;
                      &lt;?php endif; ?&gt;
                  &lt;?php
                  echo $this-&gt;loadTemplate('items');
                  ?&gt;
  </code></pre>