10 years ago
3
Topic

I have a category with many subcategories.
I would like to display all that subcategories on the same page with their images titles and descritions, and for each all the articles they contain.

The problem is that I don't know if I have to use the Joomla! category view or a custom List and type with Seblod.
I tried the List & type but I can just display informations about the articles and was unable to regroup them under their categories.
and I don't know how to customise Joomla! category for only that type of content.

Get a VIP membership
572 Posts
_jrmo
10 years ago
0
Level 1

Hi there,

So you are trying to just have 1 page, with a list of categories, and then in each category item on that page you list the child articles? So you have a "list within a list" on the same page?

If this is what you are trying to do, then it is not currently possible to do this all on the same page with SEBLOD.

If you just want to have a page of categories, then you click a category and get a list of child articles for that category, then this is easily achieved using Live values, which I describe how to use here: http://www.seblod.com/resources/videos/creating-list-pages-in-joomla-with-seblod-s-live-plugin

Cheers,

_jrmo

4229 Posts
Kadministrator
10 years ago
0
Level 1

Hi,

if you have a fixed lsit of subcategories you could do somethig similar to http://www.seblod.com/community/forum - use ether seblod list modules or list plugin http://www.seblod.com/products/8538 to list items from each category.

TO make it automatic you would need to create custom list template - loop trough categories and them filter combined results by each category, for this you need a php developer or use our support service


10 years ago
0
Level 1

Thanks to both of you,

finaly I just override blog_children.php of joomla for this kind of content to customize my view and it's look fine even if there is no article list :

<?php foreach ($this->children[$this->category->id] as $id => $child) : ?>
<a href="/<?php echo JRoute::_(ContentHelperRoute::getCategoryRoute($child->id)); ?>">
<div> <?php echo '<img src="'.json_decode($child->params)->image . '" height="142" width="289" />'; ?> </div>
<h2><?php echo $this->escape($child->title); ?></h2>
<?php if ($child->description) : ?> <div> <?php echo JHtml::_('content.prepare', $child->description, '', 'com_content.category'); ?> </div> <?php endif; ?>
<button type="button" style="position: absolute;bottom: 40px;"> > Voir les formations </button>
</a> 
<?php endforeach; ?>

I will take a look at your solutions

Get a VIP membership