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

eZ debug

Timing: Jan 18 2025 21:15:34
Script start
Timing: Jan 18 2025 21:15:34
Module start 'content'
Timing: Jan 18 2025 21:15:35
Module end 'content'
Timing: Jan 18 2025 21:15:35
Script end

Main resources:

Total runtime0.9546 sec
Peak memory usage4,096.0000 KB
Database Queries55

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 589.0547180.8125
Module start 'content' 0.00540.9449 769.8672528.6797
Module end 'content' 0.95030.0042 1,298.546942.0703
Script end 0.9545  1,340.6172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.3052140.0002
Check MTime0.00120.1298140.0001
Mysql Total
Database connection0.00060.067710.0006
Mysqli_queries0.914695.8129550.0166
Looping result0.00050.0496530.0000
Template Total0.920996.520.4604
Template load0.00220.228520.0011
Template processing0.918796.238920.4593
Template load and register function0.00010.014610.0001
states
state_id_array0.00070.078110.0007
state_identifier_array0.00180.192020.0009
Override
Cache load0.00190.1964200.0001
Sytem overhead
Fetch class attribute can translate value0.00040.042120.0002
Fetch class attribute name0.00110.116730.0004
XML
Image XML parsing0.00060.066720.0003
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.00090.0959180.0001
String conversion0.00000.000530.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs