Twiebie |
|
---|---|
#39366 Hodges: You can do {PHP|dump} in the template to get all the available variables. Make sure debug mode is enabled though. For your specific statement you could do something like this to check if the user is an admin: <!-- IF {PHP.pag.page.id} == 22 AND {PHP.usr.isadmin} --> <span style="float:right"><a href="index.php?e=page&m=add&c=members">Submit new member</a></span> <!-- ENDIF --> Here is some good documentation: http://www.cotonti.com/docs/ext/themes/cotemplate_debug_mode |
|
Dit bericht is bewerkt door Twiebie (2014-04-03 12:57, 11 jaren ago) |