Is there a way to hide a chunk from certain user groups? i.e. I have several chunks in call-outs, one of which should only be displayed to specific groups.
basically I would like to make that chunk part of a resource group, the same way you would associate a specific resource.
any thoughts?
-thanks
-sean
*** Not just websites, we also create signage, banners, print, trade show displays and more! ***
Sean Kimball CLP, CLS.
Technical Director / Sr. Developer | BigBlock Studios
._______________________________________________.
Bigblock Studios
http://www.bigblockstudios.ca Web site design & development.
27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
phone/fax: 905-426-5525
Anyone have any thoughts on this??
*** Not just websites, we also create signage, banners, print, trade show displays and more! ***
Sean Kimball CLP, CLS.
Technical Director / Sr. Developer | BigBlock Studios
._______________________________________________.
Bigblock Studios
http://www.bigblockstudios.ca Web site design & development.
27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
phone/fax: 905-426-5525
Hi Lucas;
Thanks - wound up doing this:
in My template:
<div id="right-content">
[[!If? &subject=`[[!getGroups]]` &operator=`==` &operand=`true` &then=`[[*CalloutPositionOne]]`]]
[[*CalloutPositionTwo]]
[[*CalloutPositionThree]]
[[*CalloutPositionFour]]
[[*CalloutPositionFive]]
</div>
Then in the getGroups snippet:
<?php
$output = 'false';
if($modx->user->isMember(array('Resident Group','Staff Group'))){
$output = 'true';
}
return $output;
Yes - this could be better/sexier - but the deadline is real tight!
-thanks
-sean
*** Not just websites, we also create signage, banners, print, trade show displays and more! ***
Sean Kimball CLP, CLS.
Technical Director / Sr. Developer | BigBlock Studios
._______________________________________________.
Bigblock Studios
http://www.bigblockstudios.ca Web site design & development.
27-1300 King Street East. Box 167 Oshawa, Ontario L1H8J4 Canada.
phone/fax: 905-426-5525