Forums / Developer / Accessing Module-view/Template without having to login?

Accessing Module-view/Template without having to login?

Author Message

Daniel Scheiner

Thursday 22 February 2007 2:36:38 pm

Hi!

I need to access the output generated by a moduleview-template combination without having to login at the landingpage first!

The problem:

I called

http://localhost/test/index.php/mypage/mymodule/read/variable1

and hoped to get my output, instead I was directed (as it should be i guess) to the start-page in order for me to log in.

Now: HOW can I access the output <b>directly</b> with this URL <b>without</b> having to go to the starting page???

Is it possible to give permission to everyone to access the moduleview/template-thingy (like with functions inside module.php) and put a Check into the moduleview?

<b>THANKS!!!</b>

Bruce Morrison

Thursday 22 February 2007 3:40:00 pm

Hi Daniel

Adding the following to your site.ini will do the trick:

[RoleSettings]
#  omit policy checking on a module view
PolicyOmitList[]=module/view
#  omit policy checking on a en entire module
PolicyOmitList[]=module

You will also be able to grant access to specific users via the role system.

Cheers
Bruce

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish