Display Searched Term using an autocomplete Field

  • hyperx
  • Topic Author
  • Offline
  • New Member
  • New Member
More
9 years 8 months ago #2200 by hyperx
I am looking for a way to display the searched Tag through autocomplete, i am only using the autocomplete field to perform a search and therefore there is no value under "Search Keyword" because i am not using a basic text search input. Is there a way to display only the searched Tag in the search summary?

I am guessing it can be done by altering line 95 & 166 in view.html.php (components/com_customproperties/views/search)

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

More
9 years 8 months ago #2201 by andrea_4g
The search summary already displays the tag, when a tag is clicked. That also happens when a tag cloud link or a CP menu item is clicked.

However, it does not display the tag(s) when the search is perfomed from the search module.
When you search from the search module an arbitrary number of criteria can be set at the same time.
Therefore the 'tag' field in the search summary would possibly look like: criterion1 AND (criterion2 OR criterion3) AND criterion4 ...

We decided against cluttering the search summary with such a sequence of strings and to display the 'tag' value only when a tag was actually clicked.

If you want to print the search criteria (tags) in your own way, be aware that they are already available to the views/layout inside variable '$this->search_pars', as an array.

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

More
9 years 3 months ago #2273 by Martin7
hi!

thanks a lot for your answer. I understand your point of view.

I would suggest to include such feature as an option in future releases :)

thx
Martin

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

Time to create page: 0.155 seconds