Search module filter by tags

  • stringcom
  • Autore della discussione
  • Offline
  • Nuovo Utente
  • Nuovo Utente
Di più
9 Anni 7 Mesi fa #2014 da stringcom
Search module filter by tags è stato creato da stringcom
Is it possible to create a cp search module that allows text input as well as optional filters (by tags) in a dropdown?

Si prega Accesso o Crea un account a partecipare alla conversazione.

Di più
9 Anni 7 Mesi fa #2015 da andrea_4g
Risposta da andrea_4g al topic Search module filter by tags
One can enable the 'Search by text' option within the search module, to search title and content of article against the given string.
An additional 'query type selector' (all words, any words, exact match) can be enabled too.
The 'Search by text' works in conjuction with tags search.

Si prega Accesso o Crea un account a partecipare alla conversazione.

  • stringcom
  • Autore della discussione
  • Offline
  • Nuovo Utente
  • Nuovo Utente
Di più
9 Anni 7 Mesi fa #2019 da stringcom
Risposta da stringcom al topic Search module filter by tags
Hi
Thanks for the response. I don't think I explained myself clearly.
1. I've got the 'search by text' working as well as the dropdown filter of categories but i also want a dropdown of tags as a filter which restricts the 'search by text' to content with that specific tag.
The end result should be that the user can 'search by text' by a specific category or by a specific tag.
I noticed some checkbox settings in the search module settings, but changing these makes no difference to the search module on the front end. Is it possible the module isn't working properly because of some conflict? Here is a link to a page where I'm testing the cp search module: erln.string.co.za/knowledge-centre

2. I would also like to remove the word 'categories' from displaying before the categroy dropdown and if possible also change the default dropdown text from "All categories" to "All themes".

3. Lastly, is there anyway to display say a category blog of "all articles" and then to use the tags and category dropdowns to automatically filter the "all articles" being displayed without needing the "search by text" feature?

Thank you very much for your help.

Si prega Accesso o Crea un account a partecipare alla conversazione.

Di più
9 Anni 7 Mesi fa #2020 da andrea_4g
Risposta da andrea_4g al topic Search module filter by tags
1. there seems to something misconfigured in your Custom Properties setup.
As far as I can understand you created a Custom Properties filed named 'Knowledge Center' with several values (Leadership, Transport, etc).
For some reasons this CP Tag is not displayed inside the CP Search module, as it should.
You should double check its 'Access' (Public) and 'Assigned modules'(All) settings.

2.You need to make your own template override to hide the label 'Categories' from the category selector.
The file you need to override is: modules/mod_cpsearch/tmpl/default_div.php (the line that prints the lable is 62)

3.It's indeed possible and I'd say that's the typical setup: a Blog / category layout, with a side CP Search module to filter the articles. The search by text is optional and not at all mandatory.

Si prega Accesso o Crea un account a partecipare alla conversazione.

  • stringcom
  • Autore della discussione
  • Offline
  • Nuovo Utente
  • Nuovo Utente
Di più
9 Anni 7 Mesi fa #2022 da stringcom
Risposta da stringcom al topic Search module filter by tags
Thanks I didn't have assigned modules set to "all". It's working now. Also got blog layout with tags filter working without "search by text". Will also attempt to overwrite the category selector label as you've explained. Thanks very much for the help. It's an excellent extension and i'll be sure to review it on the joomla extensions site. I'm going to be using cp with a 'file download and track' plugin to provide a document management solution instead of something like docman, which has a lot more features that I do not need and which costs a lot more because of this.

Si prega Accesso o Crea un account a partecipare alla conversazione.

Di più
9 Anni 6 Mesi fa #2024 da andrea_4g
Risposta da andrea_4g al topic Search module filter by tags
The override procedure is quite straightforward:
- create directory templates/<your_template>/html/mod_cpsearch/
- copy file modules/mod_cpsearch/tmpl/default_div.php into the directory
- edit file templates/<your_template>/html/mod_cpsearch/default_div.php (delete line 62)
- done

Concerning the download component, you could maybe give a try to jDownloads. We are just about to release the new version of Custom Properties that supports that extension too.

Si prega Accesso o Crea un account a partecipare alla conversazione.

Tempo creazione pagina: 0.182 secondi