No display "No items found" in category list

More
7 years 6 months ago #67492 by Zazenshin
I'm looking for not to display "No items found" in the front end when there's no article in a category. How to do it?
Thanks.

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

More
7 years 6 months ago #67493 by micker
just use language overrid and create an override with a space caracter

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
5 years 1 week ago #77699 by tataye
there is no way to do that per category ?

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

More
5 years 1 week ago #77700 by micker
You mean à différent string per category ?

FLEXIcontent is Free but involves a very big effort on our part.
Like the our support? (for a bug-free FC, despite being huge extension) Like the features? Like the ongoing development and future commitment to FLEXIcontent?
-- Add your voice to the FLEXIcontent JED listing reviews. Thanks![/size]

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

More
5 years 1 week ago - 5 years 1 week ago #77701 by ggppdk
Hello

to do this per category you need to modify / customize files
category_items(_html5).php
and check the current category id

E.g. not show message,
find inside file category_items(_html5).php :
Code:
// -- Check matching items found if (!$this->items) { // No items exist if ($this->getModel()->getState('limit')) { // Not creating a category view without items echo ' <div class="fcclear"></div> <div class="noitems group"> ' . JText::_( 'FLEXI_NO_ITEMS_FOUND' ) . ' </div>'; } return; }

change to
Code:
// -- Check matching items found if (!$this->items) { // No items exist if ($this->getModel()->getState('limit')) { // Do not show no_items message for categories 57 , 12 , 44 if ( ! in_array( $this->category->id, array(57,12, 44) ) ) { // Not creating a category view without items echo ' <div class="fcclear"></div> <div class="noitems group"> ' . JText::_( 'FLEXI_NO_ITEMS_FOUND' ) . ' </div>'; } } return; }


-- 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: 5 years 1 week ago by ggppdk.

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

More
5 years 1 week ago #77702 by tataye
the idea should be that on some categories or links you need to tell users that there is no items in it, and on other categories no.
tor exemple : I have a site with a link to category with no articles in it, but sub categories : i just want sub categories to appear in this page and no message for not-existing items

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

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