内容分类和条件字段

发布于 2024-08-10 14:03:42 字数 466 浏览 2 评论 0原文

我在 Drupal 还很年轻。所以请在需要的地方纠正我。

我有一个要求,其中我希望我的内容类型具有自己的字段(通过 CCK 实现),然后我希望其中一个字段成为可选择的下拉列表,并且每个下拉值实际上应该对它们进行分类,以便每种类型都可以出现单独的页面。我通过分类法来做到这一点。除了这些之外,我还希望同一内容类型中的一些其他字段依赖于下拉列表中的特定值。所以我使用了条件字段。为了使用分类术语作为字段,我使用了内容分类。但不幸的是,条件字段看不到内容分类下拉菜单(如果它是正常的非分类下拉菜单,则效果非常好)。

所以基本上,

  1. 我希望将内容分开(即 在不同的页面)的基础上 从下拉列表中选择的值。

  2. 如果一个特定值是 从下拉列表中选择,其他很少 字段应该变得可见。

我该如何整合这些东西?我是在正确的轨道上还是完全偏离轨道? 我正在使用 Drupal 6.14。 :) 感谢您的帮助!

I'm still young at Drupal.So please correct me wherever needed.

I have a requirement wherein I want my content type to have my own fields (achieved with CCK), then I want one of the fields to be a selectable drop down and each drop down value should actually categorize them so that each type can come on separate page. This I managed with taxonomy. And in addition to these,I wanted some other fields in the same content type to be dependent on a particular value in the drop down. So I used conditional fields. And in order to use taxonomy term as field,I used content taxonomy. But unfortunately, conditional fields doesn't see the content taxonomy drop down (it works perfectly well if its a normal non-taxonomy drop down).

So basically,

  1. I want content to be separated (i.e.
    on different pages) on the basis of
    a value selected from drop down.

  2. And if a particular value is
    selected from drop down, few other
    fields should become visible.

How am I to incorporate these things? Am I on the right track or completely off track?
I am using Drupal 6.14. :)
Thanks for all the help!

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

近箐 2024-08-17 14:03:42

我认为您走在正确的道路上,但条件字段仍处于测试阶段,因此错误/缺少功能是可以预料的。此外,与其他 CCK 模块相比,内容分类法有点特殊,因为它仅提供节点编辑表单上分类法字段的替换,但在节点渲染期间不存在/活动。

也就是说,您的问题已作为功能请求提交到 条件字段模块的问题队列,其中有一些可用补丁并讨论来解决这个问题 - 所以你可能想查看该线程。

I think you are on the right track, but the Conditional Fields is still in beta, so bugs/missing features are to be expected. Also, Content Taxonomy is a bit special compared to other CCK modules, as it only provides a replacement of the taxonomy fields on node edit forms, but is not present/active during node rendering.

That said, your Problem is already filed as a feature request in the issue queue of the conditional fields module, and there are some patches available and discussed to solve it - so you might want to check out that thread.

别把无礼当个性 2024-08-17 14:03:42

我不完全确定您如何需要“不同页面”部分才能工作,但如果其他所有内容都适用于非分类下拉菜单 - 并且您没有时间解决条件字段的问题 - 那么您可以设置一个查看页面来过滤CCK节点的值。

I'm not completely sure how you require the 'different pages' part to work, but if everything else works with a non-taxonomy dropdown - and you don't have time for the issues with Conditional Fields to get shaken out - then you may be able to set up a View page that filters on the value of the CCK node.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文