Extension Permission

Author Message

Shoaib Bagdadi

Thursday 02 September 2010 1:31:51 am

I recently tried to create an extension called tipafriend for purpose of learning extension development
in module.ini.append.php if I just add the following details
[ModuleSettings]
ExtensionRepositories[]=tipafriend
I am not able to add permission to the functions in my extension
but when I add
[ModuleSettings]
ExtensionRepositories[]=tipafriend
ModuleList[]=learntip --> name of the subfolder in modules folder
Then it works. Is this a new change in ezPublish because the tutorial I was refering to just asked me to add
[ModuleSettings]
ExtensionRepositories[]=tipafriend
in module.ini.append.php
Thanks in advance

Damien Pobel

Thursday 02 September 2010 2:50:44 pm

Hi Shoaib,

The module name has to be declared in module.ini/[ModuleSettings]/ModuleList since eZ Publish 4.1. As far as I know, it's too avoid to scan all modules directories in every extensions to discover the list of modules.

Cheers

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

Shoaib Bagdadi

Friday 03 September 2010 1:49:20 am

Thanks Damien

André R.

Friday 03 September 2010 2:04:01 am

Updated article to include this setting as I guess you had this from Felix's article?

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 18 2025 02:19:38
Script start
Timing: Jan 18 2025 02:19:38
Module start 'layout'
Timing: Jan 18 2025 02:19:38
Module start 'content'
Timing: Jan 18 2025 02:19:38
Module end 'content'
Timing: Jan 18 2025 02:19:38
Script end

Main resources:

Total runtime0.7413 sec
Peak memory usage4,096.0000 KB
Database Queries62

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0060 587.8906152.6094
Module start 'layout' 0.00600.0035 740.500039.4141
Module start 'content' 0.00950.7304 779.9141597.6016
Module end 'content' 0.73990.0014 1,377.515612.1875
Script end 0.7413  1,389.7031 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4398160.0002
Check MTime0.00140.1876160.0001
Mysql Total
Database connection0.00070.094710.0007
Mysqli_queries0.686592.6025620.0111
Looping result0.00070.0909600.0000
Template Total0.709295.720.3546
Template load0.00210.289920.0011
Template processing0.707195.381520.3535
Template load and register function0.00010.012510.0001
states
state_id_array0.00150.201810.0015
state_identifier_array0.00180.241520.0009
Override
Cache load0.00180.2435290.0001
Sytem overhead
Fetch class attribute can translate value0.00070.091530.0002
Fetch class attribute name0.00140.183470.0002
XML
Image XML parsing0.00170.234830.0006
class_abstraction
Instantiating content class attribute0.00000.001780.0000
General
dbfile0.00120.1552290.0000
String conversion0.00000.001040.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs