your packageName is aeibbproducts, not aei_bbproductsOkay, fixed that, now the error message is this:
Did you maybe change the schema but not regenerate the class and map files?Nope!
Hi Bruno,
I tried the tag with the change[[!SimpleSearch? &customPackages=`[b]Bbproducts[/b]:aei:aei_bbproducts:core/components/aeibbproducts/model/:bbproducts.resource = modresource.42`]]
Could not get table name for class: Bbproducts
your class is
(…)
but has to be
&customPackages=`BbProducts:aei:
Thanks, I didn't read that right!
Class name is: BpProducts
See Bruno's answer
seems you can't define a custom-prefix or an empty prefix with simpleSearch.I would have to change a lot of snippets, but maybe to make this work, it's worth it?
Could you rename your table to modx_bb_products or will that produce other issues?
or file an issue at github to make it possible to add custom-prefixes or empty prefixes.Thanks Bruno, but I don't know the first thing about how to change that. I made some feeble attempts but only managed to break the script. Can you help me on the way?
you could hack it in here at this line:
https://github.com/modxcms/SimpleSearch/blob/master/core/components/simplesearch/model/simplesearch/driver/simplesearchdriverbasic.class.php#L90
Could you rename your table to modx_bb_products or will that produce other issues?Okay, I made a copy of my table "aei_bb_products" and named it "modx_bb_products". Now I can keep trying to make SimpleSearch work and I don't have to change my snippets (yet). This time I get a different error message.
[[!SimpleSearch? &customPackages=`BbProducts:aei:aeibbproducts:core/components/aeibbproducts/model/:BbProducts.resource = modresource.42`]]