Skip to content
This repository has been archived by the owner on Mar 8, 2021. It is now read-only.

About $modx addSnippet()

yamamoto edited this page Dec 2, 2016 · 2 revisions

https://github.com/modxcms/evolution/blob/v1.2/manager/media/style/MODxRE2/welcome.php#L4-L12

https://github.com/modxcms/evolution/blob/v1.2/manager/media/style/MODxRE2/welcome.tpl#L56-L61

$modx->addSnippet('hasPermission','return $modx->hasPermission($key);');
<@IF:[[#hasPermission?key=edit_user]]>
eny text
<@ENDIF>
Clone this wiki locally