-
- 2,314 Posts
Hi everybody,
i try to show a different chunk for protected pages, is there something like "isprotected" as a variable for a page that i can use with phx?
i tried:
[+phx:if=`isprotected`:is=`1`:then=`{{chunk2}}`:else=`{{chunk1}}`+]
but i always get chunk1 as a result
when i use:
[+phx:mo=`mywebgroup`:then=`{{chunk2}}`:else=`{{chunk1}}`+]
will work, but i would need it more general, for any webgroup
does anyone know how to do this?
thanks, j
-
- 2,877 Posts
Try privateweb - [0|1] Whether or not this document has been assigned to a private web document group.
http://svn.modxcms.com/docs/display/MODx096/Document+Object
-
- 2,314 Posts
Hi mrhaw,
hmm...strange, it’s not working
-
- 2,877 Posts
...What about using Personalize snippet Yes or NoChunk (default install)
-
- 2,877 Posts
I got it to work sharkbait!
First I didn’t becasue of
´ instead of
`
[+phx:if=`[*privateweb*]`:ne=`1`:then=`Hello Guest`:else=`Hello User`+]
<br />
[*privateweb*]