Hi joomlaanalyst,
I must have asked my question wrong. But anyway thank you for the response and the effort. What i want to do is have a list of my subcategories using the directory menu. It look something like this:
Sub Category1 image - Sub Category1 name - Sub Category1 description
Sub Category2 image - Sub Category2 name - Sub Category2 description
Sub Category3 image - Sub Category3 name - Sub Category3 description
Sub Category4 image - Sub Category4 name - Sub Category4 description
I am able to do show the image and name,changing the default_categories.php into:
<div class="floattext">
<h3 class="flexicontent cat<?php echo $sub->id; ?>">
<a href="<?php echo JRoute::_( FlexicontentHelperRoute::getCategoryRoute($sub->slug) ); ?>">
<?php echo JHTML::_('image.site', $sub->image, 'images/stories/', NULL, NULL, $sub->title); ?>
<FONT COLOR="#A80000"> <?php echo $this->escape($sub->title); ?> </FONT>
<?php if ($this->params->get('showassignated')) : ?>
<span class="small"><?php echo $sub->assigneditems != null ? '('.$sub->assigneditems.')' : '(0)'; ?></span>
<?php endif; ?>
</h3>
<ul class="catdets cat<?php echo $sub->id; ?>">
<?php
foreach ($sub->subcats as $subcat)
>
<li>
<?php echo $this->escape($subcat->title); ?>
<?php if ($this->params->get('showassignated')) : ?>
<span class="small"><?php echo $subcat->assignedsubitems != null ? '('.$subcat->assignedsubitems.'/'.$subcat->assignedcats.')' : '(0/'.$subcat->assignedcats.')'; ?></span>
<?php endif; ?><?php echo JHTML::_('image.site', $subcat->image, 'images/stories/', NULL, NULL, $subcat->title); ?>
</li>
<?php
endforeach; ?>
</ul>
</div>
Now i would like to know how i can display the category description (what, in my case is only 1 sentence).
Anyone a guess