• Log in
  • Create account
  • Forgot your password?
  • Sitemap
eZpedia.org the eZ Publish CMS encyclopedia of eZ Publish Documentation, Articles, Tutorials

eZpedia - The eZ Publish Documentation Encyclopedia

Namespaces
  • Updated
  • Discussion
  • Platform
  • eZ
  • Learning
  • Solution
  • Snippet
  • Project
  • People
  • Minutes
  • About
  • New
  • Help
Search

This article
  • Edit
  • History
  • What links here
  • Keep me updated
Object information

6252

12/29/2006 03:50 am
kracker

08/17/2009 07:08 pm
Graham Brookins

5

59

Most popular
  • eZ Publish 4 [1559]
  • Developers [780]
  • Documentation [532]
  • Extensions [495]
  • PHP eZ Publish API Source code examples [426]
  • Debugging [407]
  • Learning: Template Debugging [404]
  • eZpedia [333]
  • OpenSearch [317]
  • eZ Publish Security [314]
  • Learning: How to create a design extension [309]
  • ezauthorize [302]
  • xajax classAttributes [292]
  • IRC [289]
  • Bitnami [242]
  • News [199]
  • Alphabet [188]
  • Content edit handlers [169]
  • powercontent [169]
  • Content action handlers [167]

Snippet: Template Logic to test if a template variable is defined

« 
Previous article
|
Snippet
|
Next article
 »

Question

How would one test if a template variable is defined?

Solution

You can use the is_set operator: http://ez.no/doc/ez_publish/techn...rs/variable_and_type_handling/is_set

External reference

  • Forum: How to test for existence of variable

Article provided by eZpedia

All text is available under the terms of the GNU Free Documentation License

Powered by eZ Publish 6.0.2stable

Hosted by USA eZ Publish Community Partner : Brookins Consulting