Subcategory items view?

More
7 years 6 months ago - 7 years 6 months ago #67822 by lipatovroman
Hi!
We have parent category and several child categories with items.

Now, if we enabled displaying of child categories and their items it looks like:



That is, first the category, then the subcategories and after the elements.

Is it possible to displays items for each subcategory separately?



Thanks.
Last edit: 7 years 6 months ago by lipatovroman.

Please Log in or Create an account to join the conversation.

More
7 years 6 months ago - 7 years 6 months ago #67929 by ggppdk
Replied by ggppdk on topic Subcategory items view?
Hello

if you show all items then you can use the FAQ template ... but better avoid this

Instead for proper pagination support and more display flexibility
use blog template (or a duplication of it (use the duplication button in templates management))

Explanation:
blog layout has 2 parameters to add a header for every sub-category and include category title
- you can add enable it (see picture)

but also set :
Items order (1st level order) to be their category,
(2nd level order can be anything e.g. title)

if you do not do the above then it will not work !


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Attachments:
Last edit: 7 years 6 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

More
7 years 6 months ago - 7 years 6 months ago #67930 by ggppdk
Replied by ggppdk on topic Subcategory items view?
Hello

Also if you want your sub-category header to show more than just the category title
then find this code inside
category_items(_html5).php
Code:
<?php echo $intro_catblock ? '<li class="intro_catblock">' .($intro_catblock_title && @$globalcats[$item->rel_catid] ? $globalcats[$item->rel_catid]->title : ''). '</li>' : ''; ?>

and the extra information that you need e.g. add category description
Code:
<?php echo $intro_catblock ? '<li class="intro_catblock">' .($intro_catblock_title && @$globalcats[$item->rel_catid] ? $globalcats[$item->rel_catid]->title : ''). .'<div class="alert alert-info">' . $globalcats[$item->rel_catid]->description . '</div>' . '</li>' : ''; ?>


-- Flexicontent is Free but involves a big effort on our part.
Like the our support? (for a bug-free FC, despite having a long list of functions) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing with a 5-star...
Last edit: 7 years 6 months ago by ggppdk.

Please Log in or Create an account to join the conversation.

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.354 seconds
Save
Cookies user preferences
We use cookies to ensure you to get the best experience on our website. If you decline the use of cookies, this website may not function as expected.
Accept all
Decline all
Essential
These cookies are needed to make the website work correctly. You can not disable them.
Display
Accept
Analytics
Tools used to analyze the data to measure the effectiveness of a website and to understand how it works.
Google Analytics
Accept
Decline