Display Searched Term using an autocomplete Field

  • hyperx
  • Autore della discussione
  • Offline
  • Nuovo Utente
  • Nuovo Utente
Di più
9 Anni 8 Mesi fa #2200 da 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)

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

Di più
9 Anni 8 Mesi fa #2201 da andrea_4g
Risposta da andrea_4g al topic Display Searched Term using an autocomplete Field
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.

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

Di più
9 Anni 3 Mesi fa #2273 da 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

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

Tempo creazione pagina: 0.121 secondi