Skip to the content
Documentation
Help Start
Reading in:
  • German: 9,059 of 9,059 pages
About the help in other languages
All help pages

New 'ezmodule' template operator

New 'ezmodule' template operator checks module (or view) is enabled or not basing on Rules settings which are set under [SiteAccessRules] section of the 'settings/site.ini' file.

Download as PDF

Address: https://doc.exponential.earth/exphelp/viewer/features/3.10/ezmodule_template_operator.txt

*Title: New 'ezmodule' template operator.

*Documentation:
New 'ezmodule' template operator checks module (or view) is enabled
or not basing on Rules settings which are set under [SiteAccessRules]
section of the 'settings/site.ini' file.
Syntax:
{ezmodule( uri )}

If passed string as uri parameter contains uri to enabled module (or view)
then the operator returns true, otherwise it returns false.
Note, the operator doesn't check access permissions to a module functions
or views per user, this can be checked only by using 'content/access'
template fetch function.
Example:

{def $isTipafriendEnabled = ezmodule( 'content/tipafriend' )}
{if $isTipafriendEnabled}
<a href={'content/tipafriend/187'|ezurl()}>Click to tip this to your friend</a>
{/if}
{undef}

Something wrong on this page? Report an error

Documentation license

This page was inherited from the documentation of the original software. It is not covered by the GNU Free Documentation License; it is distributed under the GNU General Public License, version 2.

Copyright (C) 1999 - 2014 eZ Systems AS and contributors