Joomla Smart Search Type Rename

DM
Dominic MartinPosted 5 months ago
Joomla! Extensions - Professional Subscription

Hey there!

I'm having an issue where the FAQbookpro search types are showing up as "FAQBookPro.Section" etc in joomla smart search component filters including your own, is there a way to rename these types to just "question" "topic" "section"?
Cheers!

0
#2798

8 answers

M
MinitekPosted 5 months agoModerator

Hi there,

The names are built into the plugins, you can not change them. The names are prefixed because otherwise the types would get tangled with other types from other components and you would not be able to figure out where they come from.

DM
Dominic MartinPosted 5 months ago

Sure I can understand that need, but is there a way to change the way they are named in the front-end so my users aren’t confused by it?

M
MinitekPosted 5 months agoModerator

You mean in the "Search by type" list in Joomla Smart Search?

DM
Dominic MartinPosted 5 months ago

Aye!

M
MinitekPosted 5 months agoModerator

I'm afraid these can not be changed as they are generated by Joomla.

Do you want to give Minitek Smart Search a try instead? It has all the functionality of Joomla Smart Search + better filter management + better front-end UI.

M
MinitekPosted 5 months agoModerator

You can see a demo at https://www.minitek.gr/search.

DM
Dominic MartinPosted 4 months agoEdited 4 months ago

I don't know if I explained my question properly, I mean on the front end. but it seems possible since your own search function doesn't display the categories like "FAQBookPro.Section" either.

So it seems like the type name is generated by the finder plugins you provide. I've played around with the PHP and changed the type name and taxonomy fields like so

protected $type_title = 'Help Topic';

and

// Add the type taxonomy data.
$item->addTaxonomy('Type', 'Help Topic');

and this solved my issues. It'd be nice if there was a way to change this naming so that it was update proof so I don't need to redo this modification each time I update my faqbook

Yeah your smart search product is nice, but it doesn't display easysocial results nicely which is my core component, so I'm using their smart search implementation rather than the joomla one.

M
MinitekPosted 4 months agoModerator

Thank you for the feedback. I will try to find a solution about this.

Search