Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我们有一个 sulu 1.6 多站点安装,想知道是否可以限制每个网站空间的可用类别?
就像是:
网络空间1:
网络空间 2:
那可能吗?
抱歉,这是不可能的。我能告诉你的最接近的是我们rootKey的类别 API 参数。此查询参数将允许您仅返回具有给定键的类别的子项。关键是联系表格中的第二行。
rootKey
因此,如果您发送这样的请求,您应该只获得类别的子树:
/admin/api/categories?locale=en&flat=true&rootKey=category1
但是,坏消息是category_list字段类型不使用此查询参数。但是,PR 将受到高度赞赏,并且可能会被合并:-)
category_list