代码之家  ›  专栏  ›  技术社区  ›  Adam Hopkinson

PyroCMS帮助程序文档

  •  6
  • Adam Hopkinson  · 技术社区  · 14 年前

    我正在做一个PyroCMS项目,但由于缺乏完整的文档,我遇到了一些问题。有人知道我在哪里可以找到核心助手的名单吗,比如 {pyro:navigation:links} ?

    3 回复  |  直到 12 年前
        1
  •  12
  •   Mat    14 年前

    我昨天才把这些修改活生生地推了出来,在我们谈话的时候,我正在为这些创建文档!

    标签

    {pyro:settings:site_name}
    {pyro:settings:site_slogan} - or any other setting
    {pyro:variables:foo}
    

    插件

    {pyro:navigation:links group="header"}
    
    {pyro:session:data name="foo"}
    {pyro:session:flash name="foo"}
    
    {pyro:session:messages}
    {pyro:session:messages success="success-box" notice="notice-box" error="error-box"}
    
    {pyro:template:title}
    {pyro:template:metadata}
    {pyro:template:body}
    {pyro:template:partial name="sidebar"}
    
    {pyro:theme:path} - produces /path/to/addons/theme/xxx/
    {pyro:theme:partial name="header"}
    {pyro:theme:css file="style.css"}
    {pyro:theme:js file="jquery.js"}
    {pyro:theme:image file="logo.gif"}
    
    {pyro:pages:url id="2"}
    
    {pyro:url:current} - outputs http://example.com/the/current/url
    {pyro:url:base} - outputs http://example.com/
    {pyro:url:segments segment="2" default="something"}
    
    {pyro:helper:lang line="foo"}
    {pyro:helper:date format="d/m/Y"}
    
    {pyro:pages:children id="2"}
        {title}
    {/pyro:pages:children}
    
    {pyro:news:posts limit="5"}
        <h2>{title}</h2>
        {body}
    {/pyro:news:posts}
    
    {pyro:widgets:area slug="sidebar"}
    {pyro:widgets:instance id="8"}
    

    这不是一个完整的清单,如我所说,我目前正在写它!

    完成后会在这里: PyroCMS Tag Reference

        2
  •  0
  •   Phil Sturgeon    13 年前

    我们现在有一个非常贴心的标签参考:

    http://pyrocms.com/docs/tag-reference

        3
  •  0
  •   Nick Pyett    13 年前

    医生们已经搬走了。

    http://docs.pyrocms.com/2.1/manual/index.php/modules-and-tags

    此外,许多标记已更改为,因此导航链接类似于:

    {{ navigation:links group="header" }}
    
    推荐文章