我去了普罗讷3.0

plonetheme.fui的Python项目详细描述


fagutvalget ved institut for informatikk编写的plone主题 (http://fui.ifi.uio.no)。主题在以下地址提供:

唯一一个我从默认的plone3主题修改过的文件,除了一些小的 对setup.pymain_template.pt的调整是 plonetheme/fui/browser/stylesheets/main.css。我只是检查了 XHTML源代码由PLONE生成,并采用试错法制作CSS。

安装

您可以使用buildout在plone中安装这个主题。

  1. Add ^{tt4}$ to ^{tt5}$:

    [buildout]
    ...
    eggs =
        ...
        plonetheme.fui
    
    [instance]
    ...
    zcml =
        ...
        plonetheme.fui
    
  2. Run (maybe backup first..):

    ~$ buildout -n
    
  3. Install the plugin using Site Setup in your Plone site.

  4. Add the following lines at the end of the Styles box in ^{tt6}$:

    Image float left|img|float-left
    Image float right|img|float-right
    Bordered image float left|img|bordered-float-left
    Bordered image float right|img|bordered-float-right
    

(5.) Add the following styles to the FCKeditor styles:

<Style name="Image float left" element="img">
  <Attribute name="class" value="float-left" />
</Style>
<Style name="Image float right" element="img">
  <Attribute name="class" value="float-right" />
</Style>
<Style name="Bordered image float left" element="img">
  <Attribute name="class" value="bordered-float-left" />
</Style>
<Style name="Bordered image float right" element="img">
  <Attribute name="class" value="bordered-float-right" />
</Style>

代码语法突出显示

主题加载prettify.js(http://code.google.com/p/google-code-prettify/)。 将prettify类添加到<;pre>;块中以获得语法高亮度。

对于开发人员

将新版本发布到pypi.python.org,其中:

~$ python setup.py egg_info -RDb "" sdist upload

您可以使用以下命令在前台运行plone:

~$ plonectl fg

请注意,除非重新安装产品,否则不会添加资源。

欢迎加入QQ群-->: 979659372 Python中文网_新手群

推荐PyPI第三方库


热门话题
如何使用运行时从JAVA运行openssl命令?   不使用线程安全类(如AtomicInteger和SynchronizedList)的java ProducerConsumer问题   匹配字符串的java模式   在java中使用泛型接口作为返回类型   java将可能具有序列化JSON值的hashmap作为节点添加到JSON字符串中   Eclipse无法从Java8流推断正确的类型   java无法了解标准JButton的大小   java我能用一个循环优化这个函数吗(在第一种方法中)?   Apache CXF中基于WebSocket的java SOAP?   java想要运行奇偶和求和三步   矩阵上随机元素的java集值   java布尔相等:0==a,操作数顺序重要吗?   java Eclipse不会退出我的插件   java如何在spring的SOAP拦截器中获取HttpServletRequest和HttpServletResponse