ride/web-template-smarty-cms 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

ride/web-template-smarty-cms

Composer 安装命令:

composer require ride/web-template-smarty-cms

包简介

Smarty template integration for the CMS of the Ride framework

README 文档

README

This module adds Smarty functions and modifiers for the CMS of a Ride application.

Functions

[Smarty docs]

content

Returns the URL of a content object or the full Content instance when requested in a variable.

Parameter Type Description
type string Name of the content type
data mixed Actual data or entry, can be an id when using the ORM
locale string Code of the locale, if omitted, the current locale is used (optional)
site string Id of the site, if omitted, the current site is used (optional)
var String Variable name to assign the content instance to (optional)
{content type="News" data=$newsEntry var="newsContent"}

Modifiers

[Smarty docs]

text

Parses relative URL's into absolute ones and replaces all known variables between [[ and ]] into their value.

Parameter Type Description
String Text to parse
{"Copyright © 1999-[[year]]"|text}

Check the readme of the available variables.

Related Modules

Installation

You can use Composer to install this module.

composer require ride/web-template-smarty-cms

统计信息

  • 总下载量: 1.95k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 0
  • 依赖项目数: 3
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 9
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-01-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固