php - PyroCMS 帮助文档

标签 php codeigniter helpers pyrocms

我正在从事 PyroCMS 项目,但由于缺乏完整的文档而遇到问题。有谁知道我在哪里可以找到核心助手列表,例如 {pyro:navigation:links}

最佳答案

我昨天才将这些更改上线,我正在为此构建文档!

标签

{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

关于php - PyroCMS 帮助文档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/4281073/

相关文章:

php - 如何在 laravel 中使用 increment() 和 decrement()

php - d3通过PHP读取代理数据的方法

如果 CURDATE() 匹配,则 PHP/MYSQL 在重复键更新时插入,否则创建新条目

php - Laravel, "before"在路由组中意味着什么?

php - codeigniter 事件记录查询 with where

javascript - 如何为angular js设置动态url

php - 将分页与查询字符串一起用于搜索表单,该表单的方法设置为在 codeigniter 中获取

c# - 在 VS2015 中找不到 System.Web.Helpers

ruby-on-rails - 如何从另一个辅助方法中调用 Rails 辅助方法?

ruby-on-rails - helpers 真的比 partials 快吗?弦乐 build 呢?