我已按照以下说明通过zopeskel创建了一个新主题
http://docs.plone.org/adapt-and-extend/theming/theme_product_with_diazo.html

但是,尝试安装产品时,出现错误:

Module plone.app.theming.exportimport.handler, line 38, in importTheme
ValueError: Theme hccrems.theme is not available

我不确定我的主题缺少什么,因为我已经两次阅读了该文档。

src / hccrems.theme / hccrems / theme / configure.zcml
http://pastie.org/9142461

src / hccrems.theme / hccrems / theme / profiles / default / theme.xml
http://pastie.org/9142470

最佳答案

  • 使用zopeskel的重氮基-模板创建一个鸡蛋:
    zopeskel diazotheme your.theme
  • 根据您指向的文档,在配置文件/默认值中添加theme.xml,并提供内容。
  • your.theme/your/theme/configure.zcml中,删除z3c.jbot-part,除非您要使用它,否则需要将z3c.jbot添加为dep,并在configure.zcml中包含记录的meta.zcml-slug。
  • 删除your.theme / your / theme / diazo_resources中的所有内容,并在其中更改您的静态文件(可能是在线生成的主题导出的)。
  • 关于plone - 新主题产品提供“ValueError: Theme my.theme is not available”,我们在Stack Overflow上找到一个类似的问题:https://stackoverflow.com/questions/23472811/

    10-11 19:21