Ajax ezjscore and custom block edition

Author Message

Vincent Laemmel

Friday 24 June 2011 10:13:44 am

Hi,

I'm using my own custom block (with custom attribute) in a Frontpage ezflow content object (working fine) and i'm using ezjscore to get an ajax response inclued in the block layout in a template (as shown in this really good article : "eZ Publish JavaScript and Ajax framework"   )

It works fine to customize my own ajax function and use it in layout in my own extension in front and backend.

But, when I edit my block in the frontpage in the backend, this same inclusion doesn't work in the overriden block layout (Jquery functions seem to be never called...).

Any idea ?
Cheers

Vincent

tofik sahraoui

Sunday 26 June 2011 1:43:48 pm

I have a similar problem, although my layout seems to have been changed from grey tabs, to blue. And the previews of the layout of choice ( zones ), are shown vertically instead of horizontally.

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 01:06:12
Script start
Timing: Jan 18 2025 01:06:12
Module start 'layout'
Timing: Jan 18 2025 01:06:12
Module start 'content'
Timing: Jan 18 2025 01:06:14
Module end 'content'
Timing: Jan 18 2025 01:06:14
Script end

Main resources:

Total runtime1.7933 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.0061 589.4609152.6406
Module start 'layout' 0.00620.0039 742.101639.4844
Module start 'content' 0.01011.7816 781.5859493.6563
Module end 'content' 1.79170.0015 1,275.24228.1406
Script end 1.7932  1,283.3828 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.1964160.0002
Check MTime0.00130.0746160.0001
Mysql Total
Database connection0.00080.045810.0008
Mysqli_queries1.744097.2504550.0317
Looping result0.00080.0446530.0000
Template Total1.756798.020.8784
Template load0.00200.113820.0010
Template processing1.754797.847220.8773
Template load and register function0.00020.009610.0002
states
state_id_array0.00100.053410.0010
state_identifier_array0.00180.098920.0009
Override
Cache load0.00160.0881140.0001
Sytem overhead
Fetch class attribute can translate value0.00120.066620.0006
Fetch class attribute name0.00260.143930.0009
XML
Image XML parsing0.00070.038920.0003
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00180.0983160.0001
String conversion0.00000.000740.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
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/link.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/link.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/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: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs