- Posts: 6
- Thank you received: 0
Display Searched Term using an autocomplete Field
- hyperx
- Topic Author
- Offline
- New Member
Less
More
9 years 8 months ago #2200
by hyperx
Display Searched Term using an autocomplete Field was created 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)
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.
- andrea_4g
- Offline
- Administrator
Less
More
- Posts: 1122
- Thank you received: 163
9 years 8 months ago #2201
by andrea_4g
Replied by andrea_4g on 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.
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.
- Martin7
- Offline
- Senior Member
Less
More
- Posts: 53
- Thank you received: 6
9 years 3 months ago #2273
by Martin7
Replied by Martin7 on topic Display Searched Term using an autocomplete Field
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
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