Category layout "FAQ": show all subcats, limit items

More
10 years 11 months ago #44020 by pabro
Hi,

I try to realise a dictionary view using the „faq“ template.

It would be nice to get an option „show ALL subcategories“ (1st sublevel) – independet of pagination option „# per page“, to show all subcategories by one page. At the moment I has to set a high number on „# per page“ to make sure that all 1st subcat would be displayed on maincategory: our dictonary gets continually new items or categories.

Also my wish is to have an option to set a fix limit of items showing on subcategories, for example 5 or 10 (newest) items, for a better overview in maincategory.

merci (:

Flexicontent: 2.1.2 r1806

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

More
10 years 11 months ago #44045 by ggppdk
Hello

yes, these suggestion make sense, and we have thought of it too and want to implement it

-- but this is planned as future work,
to implement this now, would be possible only via paid work


-- in your case you may do it now, by doing yourself 1 query per subcategory inside your custom FLEXIcontent template (see explanation below)


Explanation:
1. these are not possible without altering the category retrieval query,

2. it may require 1 sub-query PER CATEGORY
this would be OK (considering performance),
but it will be slow in large sites, that have more than have thousands of items per category)

... the 1 sub-query PER CATEGORY and thus the need to change the category Database Model is to be able to limit the items per sub-category


-- 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...

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

Moderators: vistamediajoomlacornerggppdk
Time to create page: 0.367 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