duan35557593 2013-03-18 10:04
浏览 13

如何创建从属下拉列表搜索?

Hello everybody! Please-please, Help implement next thing on Drupal 7. Now I try to explain what I need. Already spent 4 days trying to make just this thing and without success. Any help will be appreciated.

I guess everybody met such a thing as ‘Country and City’ Search. It are usually depended lists. Two dropdown lists. It think it is clear what it is. You could meet something like this on any site with hotels, hostels, plain tickets booking etc. So, I want to do the same.

I’m using Search API module and its extensions to realize it. I need somehow to implement instead of the usual search text area input the taxonomy hierarchy dropdown lists. I have taxonomy with double hierarchy. Maybe I don’t need to use the taxonomy. Maybe there is another way to do this. Let me know, please! Actually I can realize it as one dropdown list with help of views or Search Page module (Search API extensions).

In this case it looks like:

USA
-   New-York
-   AL
-   …
Canada
-   Ontario
-   …

It is one dropdown list with all term translations in it. (I need just one current user language).

But I need two. There is no widget to make it as two dropdown windows.
Simple Hierarchical Select and Hierarchical Select widgets are good for me, but it don’t appear in (index) view just in (content) view. I need to use Search API, Sort and Facets. That’s why I can’t use (content) view. Maybe, there is still a widget which I can use. Or I can realize this in other way. Maybe, taxonomy is not necessary.

I’m not familiar in php programing, but I can try if it is easy. So, THANK YOU FOR ANY HELP AND ANSWER!

  • 写回答

1条回答 默认 最新

  • duanqian6982 2013-03-18 10:07
    关注

    Take a look at Hierarchical Select module.

    Here is a demo link.

    Hope this helps.

    评论

报告相同问题?

悬赏问题

  • ¥15 求帮我调试一下freefem代码
  • ¥15 matlab代码解决,怎么运行
  • ¥15 R语言Rstudio突然无法启动
  • ¥15 关于#matlab#的问题:提取2个图像的变量作为另外一个图像像元的移动量,计算新的位置创建新的图像并提取第二个图像的变量到新的图像
  • ¥15 改算法,照着压缩包里边,参考其他代码封装的格式 写到main函数里
  • ¥15 用windows做服务的同志有吗
  • ¥60 求一个简单的网页(标签-安全|关键词-上传)
  • ¥35 lstm时间序列共享单车预测,loss值优化,参数优化算法
  • ¥15 Python中的request,如何使用ssr节点,通过代理requests网页。本人在泰国,需要用大陆ip才能玩网页游戏,合法合规。
  • ¥100 为什么这个恒流源电路不能恒流?