Joel, This is the hack way to do it, enforcing security at the presentation layer, but if you only need to secure a few pages, it will work fine. If you want to do it across a large number of types (not just dhHTML, but also dmNews, dmImage, etc.).
Create a new template (e.g. webskin/dmHTML/displayPage_myLayout_noMembers.cfm). In it, you first check whether the user is logged in or not (via session). If not, include your normal template. If they are logged in, redirect to some other page (e.g. cflocation url="#application.url.conjurer#?objectid=#application.navid.unregistererUsersOnly#") Joel Cass wrote: > > Hey all, > > I have a page which is supposed to show up on the site for anonymous > users, but not for registered users. > > I just assumed that I could say view = no for the “member” policy group. > > And then I realized that permissions were “additive” so that since all > “members” are also “anonymous”, setting view = no (as above) does > absolutely nothing. > > So is there a way to do this (have a page that *only* anonymous users > can see in nav)? > > I know it sounds a bit backwards. Any advice on how to implement this > (short of creating my own nav and security) is appreciated. > > Cheers > > **Joel Cass **Developer > > **Gruden** - Design | Development | Implementation > **t** +61 2 9299 9462 **f** +61 2 9299 9463 **m **0414 688 774 > **www.gruden.com <http://www.gruden.com/>** > > Gruden is an Australian Government Endorsed Supplier > This email is intended only for the person to whom the email address > applies. This email may contain confidential and/or copyrighted > information. you are not the intended recipient, you may not read, > print, store, copy, forward any part of this email or its attachments. > If you have received this email by mistake, please call us on +61 2 > 9299 9462, or email [EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>. > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "farcry-dev" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/farcry-dev?hl=en -~----------~----~----~----~------~----~------~--~---
