Drupal 6:CCK 字段被隐藏
我一直在尝试将自定义字段添加到自定义内容类型中,除了新字段未显示外,一切都很好,尽管它出现在 HTML
中,并带有 display: none;
属性,新字段也不从显示中排除。
这里有什么问题呢?
苏丹
I've been trying to add a custom fields into a custom content type, everything is good except the new field is not displayed though it appears in the HTML
with display: none;
attributes, also new field isn't excluded from the display.
What is the problem here?
Sultan
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您是否使用 CSS 在某处隐藏了另一个 CCK 字段?
听起来好像 CSS 规则是为了隐藏另一个 CCK 字段,但不够具体,现在意外地隐藏了您想要查看的字段。
例如,如果您的 CSS 规则为:
表示隐藏不同的字段,它将隐藏您的所有 CCK 字段。 (当然可能不是
div.field
)Have you used CSS to hide another CCK field somewhere?
It sounds like a CSS rule was meant to hide another CCK field but was not specific enough and is now accidentally hiding fields you want to see.
For example, if you have a CSS rule of:
meaning to hide a different field, it will hide all your CCK fields. (it may not be
div.field
of course)如果它有
display: none
则不会显示。更改它display: block
或者只是删除它。If it has
display: none
it's not showing up. Change it dodisplay: block
or just remove it.