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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 00:24:02
Script start
Timing: Jan 19 2025 00:24:02
Module start 'layout'
Timing: Jan 19 2025 00:24:02
Module start 'content'
Timing: Jan 19 2025 00:24:03
Module end 'content'
Timing: Jan 19 2025 00:24:03
Script end

Main resources:

Total runtime0.6717 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0053 589.2891152.6563
Module start 'layout' 0.00530.0029 741.945339.4922
Module start 'content' 0.00810.6620 781.4375523.5703
Module end 'content' 0.67020.0015 1,305.00788.1250
Script end 0.6717  1,313.1328 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.4625160.0002
Check MTime0.00120.1845160.0001
Mysql Total
Database connection0.00070.106010.0007
Mysqli_queries0.629293.6714540.0117
Looping result0.00060.0824520.0000
Template Total0.641495.520.3207
Template load0.00200.297020.0010
Template processing0.639495.191020.3197
Template load and register function0.00020.024410.0002
states
state_id_array0.00100.148310.0010
state_identifier_array0.00060.091020.0003
Override
Cache load0.00160.2355200.0001
Sytem overhead
Fetch class attribute can translate value0.00090.127520.0004
Fetch class attribute name0.00100.142330.0003
XML
Image XML parsing0.00050.076220.0003
class_abstraction
Instantiating content class attribute0.00000.001230.0000
General
dbfile0.00080.1183160.0000
String conversion0.00000.001140.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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs