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 the CmsObject and the current content object in a User-Defined Tag

This recipe shows you how to access the Page Content object via the CmsObject in a User-Defined Tag.

The primary technique that it demonstrates — getting a reference to the CmsObject and using the CmsObject to get a reference to other important CMS runtime objects — is one that you will use to solve many different kinds of problems.

In this recipe, we use the CmsObject to get a reference to the Page Content object. Once we have a reference to this object, we can call upon its methods to report all kinds of interesting information about the current page content.

Getting ready

For this recipe, you will need login access to your site's Administration area with permission to "Modify ...

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