Hi everybody,
My problem seems to be link this :
http://modxcms.com/forums/index.php/topic,43770.0.html
... but not exactly !
This is what I try :
<?php
// SNIPPET manager-is-logged
// to be used to know if a manager session is active
global $modx;
return isset($_SESSION['mgrValidated']);
?>
<!-- CHUNK bloc-admin-phx
used to insert a special administration menu, only when manager is logged -->
[+phx:if=`[!manager-is-logged!]`:is=`1`:then=`{{bloc-admin-view}}`+]<br/>
The problem is that
[!manager-is-logged!] is not well calculated inside the
phx:if...
Even if I try to place a call to this snippet before
phx...
Any idea ?
I’d like to put some usefull links for the Redactors and Administrators of my sites... so, if you’ve got any other working solution, I take !!
But, I’d also be glad to understand why my method doesn’t reach its aim ! ;-)
Thanks !