gpt4 book ai didi

drupal-7 - 无法向内容类型添加新字段,小部件下拉菜单不起作用

转载 作者:行者123 更新时间:2023-12-04 18:48:21 25 4
gpt4 key购买 nike

这是我使用drupal 的第一步。

我为我的文章创建了一个分类层次结构,现在我正在尝试向内容类型“文章”和“媒体”添加一个新字段,以便内容管理员可以为他的新内容分配一个“类别”。

所以我去过结构>内容类型>文章>管理字段
然后使用“添加新字段”:

1- Label = Category
2- Name = "field_category
3- Field = "Term reference"
**4- Automatically changes to "Select list" but I am unable to see the drop down list options. Clicking the list doesn't do anything, I couldn't select Autocomplete or any other value I've seen on forums & tutorials. Using firebug I could see the options are there, but the list doesn't show up.**

所有类型的字段都会发生这种情况,即使是最基本的文本字段也是如此。
知道为什么会这样吗?

最佳答案

正如 glumbo 提到的,这里的问题是由 引起的。 jQuery 1.7 更新 .从 jQuery 1.6 开始,应该使用 .prop() 访问 DOM 属性。功能。
有一个open issue与一些 热修复解决方案 :

您需要更换 .attr() jQuery 函数调用 .prop() /modules/field_ui/field_ui.js在以下几行:

100:      $(this).html(html).attr('disabled', disabled ? 'disabled' : '');
253: $(ajaxElements).attr('disabled', true);

请注意,此修复修改了 Drupal 核心模块,您可能需要使用补丁(无论如何,Dries 都会杀死小猫:)。

关于drupal-7 - 无法向内容类型添加新字段,小部件下拉菜单不起作用,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10212173/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com