[SOLVED] How to disable parent category in advanced search and filter?

More
8 years 2 months ago - 8 years 2 months ago #64390 by lipatovroman
How to disable parent category in advanced search and filter?



Thanks.
Last edit: 8 years 2 months ago by ggppdk.

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

More
8 years 2 months ago #64452 by ggppdk
Indeed in other places , like in item form we have option to disable / hide the parent category (e.g. category sub-tree for an item type)

- and probably this does not need a parameter at all,
it should be the default behaviour in category view and when there is a single top-level category

Test this change (do not hack any other files ! since this will not be a hack: i will test too and commit later):
in file
/plugins/flexicontent_fields/core/core.php

find:
Code:
if ( count($cids)>1 || !empty($globalcats[$_cid]->childrenarray) )

change to:
Code:
if ( count($cids)>1)


-- 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...
The following user(s) said Thank You: lipatovroman

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

More
8 years 2 months ago #64491 by lipatovroman
Yes, thanks - it works :)

BTW, after this forum update impossible to add anything from toolbar - css or js conflict. Try to add smiles or images.

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

More
8 years 2 months ago #64499 by ggppdk
Hello

I have added this change to the code,
about adding smiles and images, is it still a problem ?


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

More
8 years 2 months ago #64515 by lipatovroman

about adding smiles and images, is it still a problem ?


Yes, see how it is:

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

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