Quick Nav:  Online Store   |   Login | Register

Module Permissions

Rate this topic:

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.
AuthorMessages
Will Strohl
<100 Posts
Posts:88


04/01/2008 5:05 PM  

If you plan on implementing Page Rules (i.e., replace tokens), does the Page Blaster module need to be visible to "All Users"?

John Mitchell
Posts:3248


04/01/2008 6:07 PM  

Yes, if you want the rule(s) to apply to all users.

Page Rules will only be applied to the output if the visitor has view rights to the module.
This allows you to create rules that only apply to specific security roles and you could also put more than one module on a page.

Note that you'll probably want to turn off the Display Container checkbox in the Module Settings since there is no visible output directly from the module. And you'll want to make sure that the cache time is set to zero.

Will Strohl
<100 Posts
Posts:88


04/02/2008 7:44 AM  
Interesting. I see the evidence with one of my page rules on one of my pages, and yet I do not on another page.

For example, on my home page, I have a replace rule added to add a bit of client-side script just before the Body tag. It only worked once I set the visibility of the module to inherit from the page (view permission to "All Users").

However, on another page, I have a replace rule added that replaces a token with a pre-defined e-mail window (send to friend) link that incorporates a lot of javascript on the on-click event of the link. This one works on all page loads regardless of who is or isn't logged in, with the module visible to "page editors only" (admins).

This is very weird for me. Have you experienced anything like this?
John Mitchell
Posts:3248


04/02/2008 8:11 AM  
The only thing I can think of is that maybe it was cached before it was set to a higher security role.

Try doing a hard refresh in the browser and see if it still gets replaced when logged out.
Will Strohl
<100 Posts
Posts:88


04/02/2008 8:14 AM  

Since your original reply, I just began following your prescribed model of setting the permissions. There is a lot more potential power in doing it that way anyhow.

Please Register to post a reply. Another benefit of registration is the ability to subscribe to and recieve notifications of new posts.



ActiveForums 3.7
Powered by: Snapsis Software