ride/web-template-smarty-cms

Ride框架CMS的Smarty模板集成

2.0.0 2024-04-19 13:08 UTC

This package is auto-updated.

Last update: 2024-09-19 13:56:51 UTC


README

本模块为Ride应用的CMS添加Smarty函数和修饰符。

函数

[Smarty文档]

content

返回内容对象的URL或在变量请求时返回完整的Content实例。

{content type="News" data=$newsEntry var="newsContent"}

修饰符

[Smarty文档]

text

解析相对URL为绝对URL,并替换[[和]]之间的所有已知变量为其值。

{"Copyright © 1999-[[year]]"|text}

请查看可用的变量的readme。

相关模块

安装

您可以使用Composer安装此模块。

composer require ride/web-template-smarty-cms