ride/web-template-smarty-cms

Smarty template integration for the CMS of the Ride framework

2.0.0 2024-04-19 13:08 UTC

This package is auto-updated.

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


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.

{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.

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