<![CDATA[ Display if manager user - My Forums]]> https://forums.modx.com/thread/?thread=45352 <![CDATA[Re: Display if manager user]]> https://forums.modx.com/thread/45352/display-if-manager-user#dis-post-497341 Comicz May 08, 2014, 05:17 AM https://forums.modx.com/thread/45352/display-if-manager-user#dis-post-497341 <![CDATA[Re: Display if manager user]]> https://forums.modx.com/thread/45352/display-if-manager-user#dis-post-261958 ]]> zaigham Oct 07, 2009, 07:20 AM https://forums.modx.com/thread/45352/display-if-manager-user#dis-post-261958 <![CDATA[Re: Display if manager user]]> https://forums.modx.com/thread/45352/display-if-manager-user#dis-post-261957 Quote from: BobRay at Oct 06, 2009, 08:32 PM

Quote from: zi at Oct 06, 2009, 06:13 PM


Thanks for the contribution! Please don’t forget to add it to this page: http://wiki.modxcms.com/index.php/PHx/CustomModifiers

I went ahead and added it. smiley
Thanks, I just corrected the usage part.

Martin]]>
FuryDE Oct 07, 2009, 04:25 AM https://forums.modx.com/thread/45352/display-if-manager-user#dis-post-261957
<![CDATA[Re: Display if manager user]]> https://forums.modx.com/thread/45352/display-if-manager-user#dis-post-261956 Quote from: zi at Oct 06, 2009, 06:13 PM


Thanks for the contribution! Please don’t forget to add it to this page: http://wiki.modxcms.com/index.php/PHx/CustomModifiers

I went ahead and added it. smiley]]>
BobRay Oct 06, 2009, 03:32 PM https://forums.modx.com/thread/45352/display-if-manager-user#dis-post-261956
<![CDATA[Re: Display if manager user]]> https://forums.modx.com/thread/45352/display-if-manager-user#dis-post-261955 Quote from: FuryDE at Oct 01, 2009, 01:30 PM

I did it with a little custom modifier:

snippet phx:loggedIn
<?php
global $modx;
if(isset ($_SESSION['mgrValidated'])){
    return true;
}
else{
    return false;
}
?>


Thus I can use PHx this way:
[+phx:loggedIn:is=`1`:then=`{{loggedInChunk}}`:else=`{{notLoggedInChunk}}`+]


Works quite fine for me.
Thanks for the contribution! Please don’t forget to add it to this page: http://wiki.modxcms.com/index.php/PHx/CustomModifiers

]]>
zaigham Oct 06, 2009, 01:13 PM https://forums.modx.com/thread/45352/display-if-manager-user#dis-post-261955
<![CDATA[Re: Display if manager user]]> https://forums.modx.com/thread/45352/display-if-manager-user#dis-post-261954 waldus68 Oct 01, 2009, 04:08 PM https://forums.modx.com/thread/45352/display-if-manager-user#dis-post-261954 <![CDATA[Re: Display if manager user]]> https://forums.modx.com/thread/45352/display-if-manager-user#dis-post-261953
snippet phx:loggedIn
<?php
global $modx;
if(isset ($_SESSION['mgrValidated'])){
    return true;
}
else{
    return false;
}
?>


Thus I can use PHx this way:
[+phx:loggedIn:is=`1`:then=`{{loggedInChunk}}`:else=`{{notLoggedInChunk}}`+]


Works quite fine for me.]]>
FuryDE Oct 01, 2009, 08:30 AM https://forums.modx.com/thread/45352/display-if-manager-user#dis-post-261953
<![CDATA[Re: Display if manager user]]> https://forums.modx.com/thread/45352/display-if-manager-user#dis-post-261952 waldus68 Jun 06, 2009, 02:37 PM https://forums.modx.com/thread/45352/display-if-manager-user#dis-post-261952 <![CDATA[Re: Display if manager user]]> https://forums.modx.com/thread/45352/display-if-manager-user#dis-post-261951 http://modxcms.com/extras.html?view=package/view&package=270

Regards.]]>
zaigham Jun 06, 2009, 02:15 PM https://forums.modx.com/thread/45352/display-if-manager-user#dis-post-261951
<![CDATA[Display if manager user]]> https://forums.modx.com/thread/45352/display-if-manager-user#dis-post-261950
Essentially I want to be able to include links for manager users for help pertaining to particular pages, or possibly include a link to a Ditto listing for the manager to jump to & edit that page using QM+ (otherwise the listing would just be text and not a public accessible link.)

I have found a few similar questions in the forum but did not see a solution–I apologize if I just missed it.

Thanks!]]>
waldus68 Jun 06, 2009, 01:22 PM https://forums.modx.com/thread/45352/display-if-manager-user#dis-post-261950