HOWTO: Restrict access to new ?TPL-file? in module

Author Message

Dominik Pich

Wednesday 14 January 2004 4:46:21 am

I added a preregister.tpl to the user module which I need to call before calling register ( PRE :P)

Anyways, the anonymous user has no access to this :(
How to change this so that all have access!?

Eirik Alfstad Johansen

Wednesday 14 January 2004 6:44:16 am

Hi Dominik,

Have you created a separate view for this template (user/preregister)? If so, I belive that it's this view that the user should have access to and not the templates. I might be wrong, though.

Sincerely,

Eirik Johansen

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

Dominik Pich

Thursday 15 January 2004 3:52:11 am

First, thank you for helping AGAIN :)

I need to add new views to the USER module
user/preregister
user/register2

I created the tpl file in myview/templates/user annd tried also creating it in standard/templates/user

I further edited settings/site.ini and added
PolicyOmitList[]=user/preregister

But all I get is 'view not found'
Editing the kernel I could but it isnt cool -> upgrade

Eirik Alfstad Johansen

Thursday 15 January 2004 4:51:12 am

Hi Dominik,

> Editing the kernel I could but it isnt cool -> upgrade

That's true, but AFAIK, the only way to add a view to a module is to do just that. Simply adding a template by the same name won't do.

Have you considered putting your new views into a new module (an extension) to keep you away from tampering with the kernel code?

Sincerely,

Eirik Johansen

Sincerely,

Eirik Alfstad Johansen
http://www.netmaking.no/

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 04:41:26
Script start
Timing: Jan 19 2025 04:41:26
Module start 'layout'
Timing: Jan 19 2025 04:41:26
Module start 'content'
Timing: Jan 19 2025 04:41:27
Module end 'content'
Timing: Jan 19 2025 04:41:27
Script end

Main resources:

Total runtime0.9535 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 590.4063152.6406
Module start 'layout' 0.00630.0030 743.046939.4766
Module start 'content' 0.00930.9425 782.5234547.5000
Module end 'content' 0.95180.0017 1,330.023412.1250
Script end 0.9535  1,342.1484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3352160.0002
Check MTime0.00130.1372160.0001
Mysql Total
Database connection0.00090.095010.0009
Mysqli_queries0.895293.8857600.0149
Looping result0.00070.0711580.0000
Template Total0.914295.920.4571
Template load0.00200.208920.0010
Template processing0.912295.664320.4561
Template load and register function0.00020.016210.0002
states
state_id_array0.00130.140310.0013
state_identifier_array0.00150.155820.0007
Override
Cache load0.00160.1711300.0001
Sytem overhead
Fetch class attribute can translate value0.00130.132520.0006
Fetch class attribute name0.00100.110050.0002
XML
Image XML parsing0.00070.077220.0004
class_abstraction
Instantiating content class attribute0.00000.001460.0000
General
dbfile0.00110.1113160.0001
String conversion0.00000.000940.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
4content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 20
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs