PyroCMS 帮助文档

发布于 2024-10-05 05:33:09 字数 99 浏览 4 评论 0原文

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

I'm working on a PyroCMS project, but having problems due to the lack of complete documentation. Does anyone know where I can find a list of core helpers, such as {pyro:navigation:links}?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

巴黎夜雨 2024-10-12 05:33:09

我昨天才推送这些更改,就在我们说话的时候,我正在为此构建文档!

标签

{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 标签参考

I only pushed those changes live yesterday, I am building the documentation for this as we speak!

Tags

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

Plugins

{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"}

That's not a complete list as like I said, I am currently writing it!

It will be here when it's done: PyroCMS Tag Reference

2024-10-12 05:33:09

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

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

We now have a pretty sweet Tag Reference:

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

你穿错了嫁妆 2024-10-12 05:33:09

文档已移动。

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

此外,很多标签已更改为,因此导航链接将类似于:

{{ navigation:links group="header" }}

The docs have moved.

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

Also, a lot of the tags have changed to, so the navigation links would be something like:

{{ navigation:links group="header" }}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文