Search in support tickets

#966 – Root Category ID (Advaced Search)

Posted in ‘Support’
This is a public ticket. Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.
Friday, 01 October 2021 12:44 CEST
Edu2021
Hi.
In the module "Advaced Search" I put an id in "Root Category ID" and when you do a search it does not respect it. Looks for me in all categories.
Custom Fields
Joomla Version
3.10.2
PHP Version
7.4.20
Product
AdsManager
Product Version
3.2.13
Friday, 01 October 2021 13:48 CEST
loic
Hello,

Did you also limit by a root category in the menu item of the result page ?

Be careful, the root id is different than the category id. The root id will limit all ads pages as if the root category id is the root of all ads.
That mean that no other ads than the one belonging to children of the root cateogy will appear.

Best regards.
 
Thursday, 07 October 2021 12:24 CEST
Edu2021
I have fixed it by javascript. When I limit by the root category in the menu item, by js I go by default that category and cancel the rest of the categories.
Thank you.

if (window.location.href.indexOf ("offers")> -1) {
$ ("# catid-120"). val (24);
$ ("# catid-120"). find ("option [value = 31]"). remove ();
$ ("# catid-120"). find ("option [value = 29]"). remove ();
$ ("# catid-120"). find ("option [value = 26]"). remove ();
$ ("# catid-120"). find ("option [value = '']"). remove ();
}
Thursday, 07 October 2021 13:08 CEST
loic
Hello,

Ok, if it works.

Best regards.
 
This ticket is closed, therefore read-only. You can no longer reply to it. If you need to provide more information, please open a new ticket and mention this ticket's number.