表达式引擎频道、类别和条目 - 全部具有不同的自定义字段
我有一个网站,顶部导航中包含以下部分:
- 关于我们
- 新闻
- 工作人员
- 成为会员
在每个顶部导航项目中,有 X 个子部分。例如:
关于我们,
- 我们是谁,
- 行业统计
- 年度报告
然后,其中每一个都有 X 数量的子页面:
关于我们
- ,我们是谁
- 概述
- 我们的历史
- 我们的目标
根级顶部导航项(关于我们)始终需要相同的自定义字段。 中层和底层页面通常具有相同的内容,但与根层的内容有很大不同,因此需要一组不同的自定义字段。
我已经设置了结构,根项是频道,中间是类别,较低级别只是“条目”。
我现在的问题是,在根通道上使用“通道字段组”显然会过滤所有相关的类别和条目。因此,当我去编辑或发布类别登陆或入口页面时 - 我被显示根登陆页面的自定义字段组所困扰。
我希望最终用户(我的客户)在编辑或发布不在根频道级别的页面时不必看到很多自定义字段。
如何设置此网站,以便我可以在同一频道内的不同页面上挑选不同的字段组?
I have a site with these sections in the top nav:
- About Us
- News
- Staff
- Become a Member
Within each top nav item, is X amount of sub sections. eg:
About Us
- Who We Are
- Industry Stats
- Annual Report
Then, within each one of those has X amount of sub pages:
About Us
- Who We Are
- Overview
- Our History
- Our Objectives
The root level top nav items (About Us) will always require the same custom fields.
The middle and bottom level pages will generally have the same content, and but will be much different to that of the root level, and so requires a different set of custom fields.
I have set the structure up so that the root items are the channels, the middle are categories, and the lower levels are just 'entries'.
My problem now, is that using a 'channel field group' on the root channel obviously filters through all categories and entries associated. So when I go to edit or publish a category landing or entry page - i am stuck by being shown the custom field group for the root landing page.
I would like it so that the end user (my client) doesnt have to see a lot of custom fields when they edit or publish a page that isnt at root channel level.
How to I set this site up, so that I can pick and choose different field groups on different pages that are within the same channel?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
虽然您可以为每个频道和每个成员组使用自定义发布页面布局,但到目前为止我知道您无法呈现具有不同发布布局的“页面”或条目。
如果您在导航中使用不同的级别模板,蓝图可能就是您的选择正在寻找。
您构建导航和“页面”的方式的分类很有趣,但作为客户我不想维护或理解。例如,添加网站的新顶级部分或页面这样简单的事情应该很容易,但按照您的方法将需要设置一个全新的渠道!
一些 ExpressionEngine 附加组件可能更适合您的网站,并且仍然允许您实现您想要的自定义,这些附加组件是 结构、NavEE 或 分类法 - 当然总是有原生的页面模块 以及。
While you can use custom Publish Page Layouts per channel and per member group, as far I'm aware you can't present 'pages' or entries with varying Publish Layouts.
If you're using different templates for levels in your navigation, Blueprints, may be what you're looking for.
The taxonomy in how way you've architected your navigation and 'pages' is interesting, but not one as a client I would like to maintain or understand. For example, something as simple adding a new top-level section or page of the site should be easy, but with your methodology would require setting up an entirely new channel!
Some ExpressionEngine add-ons that may be better suited for your site and still allow you to achieve the customization you desire would be Structure, NavEE or Taxonomy — of course theres always the the native Pages Module as well.