开发者

Restrict content types to certain taxonomy terms [closed]

开发者 https://www.devze.com 2023-01-09 18:50 出处:网络
Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed. This question is off-topic. It is not currently accepting answers.

Want to improve this question? Update the question so it's on-topic for Stack Overflow.

Closed 10 years ago.

Improve this question

I have 开发者_开发问答a taxonomy set up similar to:

Parent Term 1
  Child 1.1
  Child 1.2
Parent Term 2
  Child 2.1
  Child 2.2

How can I restrict a certain content type to a certain term?

For example, I want to force "News Item" to only be in "Parent Term 2", so that on the content creation page only that taxonomy term would appear in the taxonomy select item?


You can do this with Content Taxonomy's Content Taxonomy Options module. Add a new Content Taxonomy field, and use the Select widget. In the field settings, under the Advanced settings for hierarchical vocabularies field group, select the Parent Term you want to use for that field.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号