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

Titel: Neuer Template-Operator 'ezmodule'

Der neue Template-Operator 'ezmodule' prüft, ob ein Modul (oder eine Ansicht) eingeschaltet ist, anhand der Rules-Einstellungen im Abschnitt [SiteAccessRules] der Datei 'settings/site.ini'.

Download as PDF

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

This page is a translation. Read the English original

*Titel: Neuer Template-Operator 'ezmodule'

*Dokumentation:
Der neue Template-Operator 'ezmodule' prüft, ob ein Modul (oder eine Ansicht) eingeschaltet
ist, anhand der Rules-Einstellungen im Abschnitt [SiteAccessRules] der Datei
'settings/site.ini'.
Syntax:
{ezmodule( uri )}

Enthält die als uri übergebene Zeichenkette die URI eines eingeschalteten Moduls (oder einer
Ansicht), gibt der Operator true zurück, sonst false.
Hinweis: Der Operator prüft nicht die Zugriffsrechte eines Benutzers auf Funktionen oder
Ansichten eines Moduls; das geht nur mit der Template-Fetch-Funktion 'content/access'.
Beispiel:

{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