Search module filter by tags

  • stringcom
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 7 months ago #2014 by stringcom
Search module filter by tags was created by stringcom
Is it possible to create a cp search module that allows text input as well as optional filters (by tags) in a dropdown?

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

More
9 years 7 months ago #2015 by andrea_4g
Replied by andrea_4g on 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.

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

  • stringcom
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 7 months ago #2019 by stringcom
Replied by stringcom on 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.

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

More
9 years 6 months ago #2020 by andrea_4g
Replied by andrea_4g on 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.

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

  • stringcom
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 6 months ago #2022 by stringcom
Replied by stringcom on 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.

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

More
9 years 6 months ago #2024 by andrea_4g
Replied by andrea_4g on 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.

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

Time to create page: 0.143 seconds