Apostrophe cms 撇号在“撇号页面”中查找“撇号片段页面”模板`

Apostrophe cms 撇号在“撇号页面”中查找“撇号片段页面”模板`,apostrophe-cms,Apostrophe Cms,因此,profile components pages扩展了撇号片段pages,没有任何问题,但每当我尝试访问类型为key resources pages的页面时,就会出现以下错误: Error: template not found: pages/key-resources-pages.html 这让我相信它是在撇号页面中寻找模板,而不是关键资源页面,考虑到我已经将其添加到app.js和撇号页面,这对我来说意义不大。以下是所有相关信息的片段: App.js: lib/modules/撇号页/

因此,
profile components pages
扩展了
撇号片段pages
,没有任何问题,但每当我尝试访问类型为
key resources pages
的页面时,就会出现以下错误:

Error: template not found: pages/key-resources-pages.html
这让我相信它是在
撇号页面
中寻找模板,而不是
关键资源页面
,考虑到我已经将其添加到
app.js
撇号页面
,这对我来说意义不大。以下是所有相关信息的片段:

App.js:

lib/modules/撇号页/index.html:

lib/modules/key resources/index.html:

lib/modules/key resources pages/index.htmi:


所有模块最初都是使用撇号cli创建的,并根据需要进行修改。

快速修改解决了该问题。我缺少
关键资源页面
模块的
名称
字段,我将其重命名为单数。我的修改(不包括文件的其余内容)如下:

lib/modules/撇号页/index.html

lib/modules/key resources pages/index.html:

'apostrophe-link-widgets': {},
'home-card-widgets': {},
'learning-offerings': {},
'profile-components': {},
'profile-components-pages': {},
'key-resources': {},
'key-resources-pages': {},
's2sl-widgets': {},
'static-assets': {}
module.exports = {
  types: [
    {
      name: 'home',
      label: 'Home'
    },
    {
      name: 'profile-components-pages',
      label: 'GBS Success Profile'
    },
    {
      name: 's2sl',
      label: 'Space to Succeed Live'
    },
    {
      name: 'key-resources-pages',
      label: 'Resource Page'
    }
  ]
}
module.exports = {        
  name: 'key-resource',        
  extend: 'apostrophe-pieces',        
  label: 'Key Resource',        
  pluralLabel: 'Key Resources',
  ...
}
module.exports = {          
  extend: 'apostrophe-pieces-pages',          
  label: 'Resource Page',          
  addFields: [...]          
};
module.exports = {
  types: [
    {
      name: 'key-resource-page',
      label: 'Resource Page'
    }
  ]
}
module.exports = {          
  extend: 'apostrophe-pieces-pages',
  name: 'key-resource-page',
  label: 'Resource Page',          
  addFields: []          
};