Auto-complete results depends on Glossary filter.

Created on 15 March 2013, almost 12 years ago
Updated 28 March 2024, 9 months ago

I've made some views, that have a glossary filter. When I apply some glossary filter, I can do a search with auto-complete through all content. This is not good, so I hard coded, a little this module.

My solution was to implement

hook_views_query_alter()

where I do

 variable_set();

for my

$view->args[0]

(my glossary filter).
After that, in

views_autocomplete_filter()

I just set args to views

$view->set_arguments($args_from_variable_get);

Hope, this will be useful for somebody.

💬 Support request
Status

Closed: outdated

Component

Code

Created by

🇲🇩Moldova Vultures

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024