2013-10-30 23 views
1

我正在寻找一种方法来创建一个Plone主题,无需任何额外的工具。作为一个wordpress用户,我将使用本机sunburst主题并对其进行修改(但是作为一个完整的主题,而不是一个孩子)。没有要求的Plone主题

我创建了一个鸡蛋,并尝试从sunburst主题中提取基本要素*。

* (浏览器文件夹和configure.zcml中的部分,为了有[站点设置>主题]下选择了“mytheme的”标签)

出于某种原因,没有工作。我能够激活“附加”,但没有其他发生..任何想法?

回答

0

这是一个老问题,但我对这个问题的最终解决办法是:

[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) ['']: [email protected] 
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]: 

>>>SOURCE

3

如果你正在寻找一种无忧的方式来创建和使用主题(Plone 4.x),我建议你忘掉插件风格,并开始在Diazo主题上工作。
Diazo主题只是一个zip文件,您可以轻松上传到Plone并使用它。不需要插件。

你也可能会发现Codapress主题(这是使用重氮设计)作为一个很好的起点 - 至少这是我学到它的方式。

2

在Plone 4.3中,控制面板中有一个使用重氮技术的in-Plone主题编辑器。您无法修改Sunburst,但有一个基于Twitter Bootstrap的示例主题,您可以使用它来获取灵感。如果你对HTML和CSS感到满意,其余的应该很容易。

该控制面板还提供了详细的帮助。

+0

,我很想去,但我在努力的Plone 4.1:/ – dustinboettcher

+0

你可以,如果你修改旭日首先安装plonetheme.diazo_sunburst ... – aclark