Drupal 中的城市和州选择
我的问题是关于 Drupal 的。
我想创建一个用于在我的网站上创建广告的内容类型,并且我需要州和城市字段。 城市列表应随州选择的变化而变化。
我不知道如何实现这个问题。我想也许 CCK 和分类模块足以实现这个目标,但我不确定。
我是一名 php 程序员,如果需要的话可以实现任何 php 代码。
感谢您的帮助。
my question is about Drupal.
i want to create a content type for creating ads on my site and i need state and city fields.
the city list should changes on state selection change.
i have no idea about implementing this issue.i guess maybe the cck and taxonomy modules are enough to gain this goal but i am not sure.
i am a php programmer and can implement any php codes if is needed.
thank you for your help.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
活动选择模块定义了活动选择表单元素。 activeselect 元素与常规 select 元素相同,不同之处在于,当用户选择一个新选项(或一组选项)时,一个或多个不同的 select 元素(目标元素)会更新其列表。这是使用 AJAX 完成的,如果不存在所需的 JavaScript 支持,它会优雅地降级。目标元素可以是常规选择框,也可以是其他主动选择框(这反过来又可以触发其他目标框,而其他目标框又可以触发其他目标框,从而产生主动选择元素的分层级联)。
除非其他模块指示您这样做,否则不必安装此模块。
http://drupal.org/node/74747
但对于 drupal 来说似乎不存在>6
The active select module defines the activeselect form element. An activeselect element is the same as a regular select element, except that when the user selects a new option (or set of options), one or more different select elements (the target elements) get their lists updated. This is done using AJAX, and it is designed to degrade gracefully if the required JavaScript support is not present. The target elements can be either regular select boxes, or other activeselect boxes (which in turn can trigger other target boxes, which can trigger yet others, resulting in a hierarchical cascade of activeselect elements).
Don't bother installing this module unless some other module instructs you to do so.
http://drupal.org/node/74747
but does not seem to exist for drupal>6