block.ini.append.php in my own extension?

Author Message

John Moritz

Tuesday 22 July 2008 12:52:15 am

Hello,

is it possible to extend ezFlow thru my custom extension? This means, that when i want to make new blocks or zone-layouts i dont have to make changes in the ezFlow extension folder but in my own extension folder. Would be great because i want to make my extension working out of the box, and if i have to make changes in ezFlow folder thats not possible.

At the moment i tryed to place the block.ini.append.php file in my settings Folder with this code:

<?php /*

[General]
AllowedTypes[]
AllowedTypes[]=block_test

[block_test]
Name=Block Test
ManualAddingOfItems=disabled
CustomAttributes[]=node_id
UseBrowseMode[node_id]=true
ViewList[]=testblock
ViewName[testblock]=Testblock

*/ ?>

But its not workin, i thought this will extend the block.ini, but its not. I cant see the block on my frontpage class.

Any ideas, is it possible or do i hav to make changes only in ezFlow Folder?

Bin LIU

Tuesday 22 July 2008 1:29:05 am

your can override the ini and the template in your own siteaccess.

=== Lagardère Active ===

Fetch random
http://projects.ez.no/la_fetch_random
LA Static Cache
http://projects.ez.no/lastaticcache
LA Bookmarks (jquery)
http://projects.ez.no/labookmark
LA Calendar (jquery)
http://projects.ez.no/lacalendar

My site ez
http://lingping.info

John Moritz

Tuesday 22 July 2008 2:37:04 am

dont understand what u mean with clean.
At the moment i putted the block.ini.append.php in the following folders of my extension.

my_extension/settings/block.ini.append.php
my_extension/settings/override/block.ini.append.php
my_extension/settings/siteacess/block.ini.append.php
my_extension/settings/siteaccess/eng/block.ini.append.php

I have no problems with the templates within, everythings working. If i go to the ezflow extension folder and change the block.ini.append.php i can see my block on the frontpage class. If i delete the entry of my custom block, its not showing.

Bin LIU

Tuesday 22 July 2008 2:46:22 am

sorry for my french english, clean means your own siteaccess

the simplest thing is, you can put your block.ini in the settings/override
it's override witch in the ezflow

=== Lagardère Active ===

Fetch random
http://projects.ez.no/la_fetch_random
LA Static Cache
http://projects.ez.no/lastaticcache
LA Bookmarks (jquery)
http://projects.ez.no/labookmark
LA Calendar (jquery)
http://projects.ez.no/lacalendar

My site ez
http://lingping.info

Carlos Revillo

Thursday 13 November 2008 9:14:42 am

I was looking for ez flow information and found this post. maybe you've got the solution now...

Anyway, we have the same issue. we think that the "problem" when you install ezflow,
your extension/ezflow/settings/block.ini.append.php looks like

[General]
AllowedTypes[]

So, you cannot add other types from extension, because ezflow extension "reset" the allowed types again

Quick fix could be comment the second line...

[General]
#AllowedTypes[]

It seems to be working in our testing servers, but if anyone knows if this could be a problem, please let me know.

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

Main resources:

Total runtime0.2080 sec
Peak memory usage4,096.0000 KB
Database Queries67

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 588.0781152.6406
Module start 'layout' 0.00720.0041 740.718839.4766
Module start 'content' 0.01140.1952 780.1953598.0078
Module end 'content' 0.20660.0014 1,378.203116.1172
Script end 0.2079  1,394.3203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00331.5630160.0002
Check MTime0.00140.6689160.0001
Mysql Total
Database connection0.00110.527010.0011
Mysqli_queries0.148271.2411670.0022
Looping result0.00070.3319650.0000
Template Total0.167180.320.0835
Template load0.00200.943420.0010
Template processing0.165179.389420.0826
Template load and register function0.00020.076910.0002
states
state_id_array0.00080.388010.0008
state_identifier_array0.00080.383320.0004
Override
Cache load0.00170.7980340.0000
Sytem overhead
Fetch class attribute can translate value0.00080.389430.0003
Fetch class attribute name0.00090.453960.0002
XML
Image XML parsing0.00070.318230.0002
class_abstraction
Instantiating content class attribute0.00000.007370.0000
General
dbfile0.00120.5955150.0001
String conversion0.00000.004840.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
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/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: 27
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs