我正在寻找一种无需任何额外工具即可创建 Plone 主题的方法。作为一个 wordpress 用户,我打算使用原生的 sunburst 主题并对其进行修改(但作为一个完整的主题而不是一个孩子)。
我创建了一个彩蛋并尝试从旭日主题中提取要领*。
* (浏览器文件夹和部分configure.zcml,以便在[站点设置>主题]选项下有一个“mytheme”标签)
由于某种原因,它不起作用。我能够激活“附加组件”,但没有其他任何反应......有什么想法吗?
在 Plone 4.3 中,控制面板中有一个内置的 Plone 主题编辑器,使用 Diazo 技术。您无法修改 Sunburst,但有一个基于 Twitter Bootstrap 的示例主题,您可以使用它来获得灵感。如果您对 HTML 和 CSS 感到满意,那么其余的应该很容易。
该控制面板也提供了详细的帮助。
这是一个老问题,但我对这个问题的最终解决方案是:
[terminal-prompt]:src: ../bin/paster create -t plone3_theme
Selected and implied templates:
ZopeSkel#basic_namespace A basic Python project with a namespace package
ZopeSkel#plone A project for Plone add-ons
ZopeSkel#plone3_theme A theme for Plone 3
Enter project name: plonetheme.[project]
Variables:
egg: plonetheme.[project]
package: plonetheme[project]
project: plonetheme.[project]
Expert Mode? (What question mode would you like? (easy/expert/all)?) ['easy']: all
Namespace Package Name (Name of outer namespace package) ['plonetheme']:
Package Name (Name of the inner namespace package) ['[project]']:
Skin Name (Name of the theme (human facing, added to portal_skins)) ['']: [Project] Theme
Skin Base (Name of the theme from which this is copied) ['Plone Default']: [dependent on base theme]
Empty Styles? (Override default public stylesheets with empty ones?) [False]:
Include Documentation? (Include in-line documentation in generated code?) [True]:
Version (Version number for project) ['1.0']: 0.1.0
Description (One-line description of the project) ['An installable theme for Plone 3']: [description]
Register Profile (Should this package register a GS Profile) [True]:
Long Description (Multi-line description (in ReST)) ['']: [long description]
Author (Name of author for project) ['']: HSTS Web Development Center
Author Email (Email of author for project) ['']: support@example.com
Keywords (List of keywords, space-separated) ['web zope plone theme']:
Project URL (URL of the homepage for this project) ['http://svn.plone.org/svn/collective/']: http://www.example.com
Project License (Name of license for the project) ['GPL']:
Zip-Safe? (Can this project be used as a zipped egg? (true/false)) [False]:
Zope2 Product? (Are you creating a product for Zope2/Plone or an Archetypes Product?) [True]: