Skip to the content
Documentation

expinfo

No ratings yet

Available since Exponential 6.0.15 (in development, not in a release yet).

Summary

Template operator for querying Exponential extension metadata.

Description

Template operator for querying Exponential extension metadata.

Usage: {expinfo()} - all active extensions {expinfo( 'all' )} - all available extensions with 'active' boolean {expinfo( 'explayouts_ui' )} - single extension info, or false if not found

Examples: {def $ext=expinfo( 'explayouts_ui' )} {if $ext} {/if}

Name: {$ext.name}
Version: {$ext.version}
License: {$ext.license}
Active: {$ext.active}

{foreach expinfo( 'all' ) as $name => $ext} {/foreach}

{$name} - {$ext.name} (active: {$ext.active})

Examples

{def $ext=expinfo( 'explayouts_ui' )}
{foreach expinfo( 'all' ) as $name => $ext}

Source

Implemented by eZTemplateExpInfoOperator (lib/eztemplate/classes/eztemplateexpinfooperator.php).

See also

Generated example: expinfo

Added to the reference for Exponential 6.0.15: the 4.x reference had no page for this operator.

Contributors

Comments

Add a comment

Comments are read by a moderator before they appear.