O'Reilly logo

CMS Made Simple Development Cookbook by Samuel Goldstein

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using Smarty values as inputs in a User-Defined Tag

You may find yourself in a situation where you need to access data that a module or the CMS Made Simple core has set a variable for use in Smarty, but has not made it available via a function call.

This recipe shows you how your User-Defined Tag can access variables that have been assigned to Smarty, but which may not be easily available via other means.

Getting ready

For this recipe, you will need access to your site's Administration area with permission to "Modify User-Defined Tags" and "Manage All Content". This recipe also assumes that you have the News module installed and used by your page template. It will help if you have a few News articles published.

How to do it...

  1. Log in to your CMS ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required