Plugins::zm smarty

From ZenMagick Wiki

Jump to: navigation, search

Smarty support has been discontinued. It might come back for Smarty3

Description

A plugin that adds support for the Smarty Templating Engine. Smarty themes will only work with this plugin installed and enabled. Opposed to that, regular ZenMagick themes will not work with Smarty enabled.

One advantage of using Smarty is that it allows to cache page fragments whereas plain ZenMagick does not do any caching at all (unless using other caching plugins).

Smarty itself is not part of this plugin and needs to be downloaded separately.

An example theme (not complete) is included to illustrate basic concepts.

Issues

  • Theme inheritance does not and can't work with Smarty themes
  • At the moment there is no base theme available using Smarty
  • Right now the ZenMagick setting isLegacyAPI needs to be enabled in order to use Smarty
Personal tools