Path

ez projects / enhanced_attribute_operator

Attention please: Due to restructuring legacy services, the eZ Projects service is going to be discontinued. All the current repositories will be migrated to a new platform. More details will be announced soon.

enhanced 'attribute' template operator

UNIX name Owner Status Version Compatible with
enhanced_attribute_operator Claudia Kosny stable 1.0 3.8.3, 3.8.6, 3.9.0
hack to enhance 'attribute' operator to show scalar and NULL variables as well

Currently the template operator 'attribute' only works with arrays and objects. I have enhanced it a bit so it can deal with scalar variables as well. Also it displays a message if a variable is NULL as at the moment there is no difference in the display of an empty array or a null value.

Installation

As I don't have a good patch utility available I recommend the following:
Just copy the folder patches to your eZ root directory and add the following lines to the beginning of your index.php to enable the patch:

$path = 'patches';
  set_include_path($path . PATH_SEPARATOR . get_include_path());

Usage

Same as the normal attribute operator.

Screenshot

Output of enhanced attribute operator for an integer, a string and a NULL value
Output of enhanced attribute operator for an integer, a string and a NULL value

No news yet.

This project has no reviews yet. Be the first one to review it!