Is it possible to an XML text block to ezflow blocks?

Author Message

Kostadinka Ignatieva

Wednesday 29 October 2008 1:36:34 am

Hi and congrats on the great extension!

I have been using ezflow for quite a long time and it is working good. Now I want to add some new features to its blocks, so that they are not constrained only to adding items to them.

My question is if it is possible to add an XML text block to the ezflow block?
This XML block I want to use like a description field to the block, to show not only text but images, inserted tags, multimedia objects... in other words features of the Online Editor.

For this purpose I started with using the CustomAttributes setting of the blocks. And it worked as expected - shows a text input. But so far I haven't been able to call the OE for that field.
Is this possible? Or is there some other way than using CustomAttributes?

Iguana IT - http://www.iguanait.com

Bin LIU

Wednesday 29 October 2008 2:13:37 am

you can samply add an attribute XML block in the class frontpage, add use it in your template as you wish.

=== 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

Arnaud Lafon

Wednesday 03 December 2008 7:28:59 am

Hi Kostadinka,

did you find a simple way to use XML text block in ezflow blocks ?

I'm currently working on a "custom attributes" handler, but this needs a small hack of the ezpage datatype...

Looking for information about SQLI ?
Looking for a new job in Paris ?
Please contact me at alafon [at] sqli [dot] com

Kostadinka Ignatieva

Monday 15 December 2008 12:41:59 am

Hi, Arnaud, and thanks for your reply!

Unfortunately, I am no longer working on this task, but I will be very grateful if you could share your approach and maybe we can help each other later on.
I also think that with some modifications to the extension, this could be done. My initial idea, however, was to not change the extension a lot...

Iguana IT - http://www.iguanait.com

tofik sahraoui

Monday 27 June 2011 6:14:48 am

any solutions to this?

Gaetano Giunta

Monday 27 June 2011 9:08:25 am

I fear at the moment the simplest you can do is create an xml block as attribute of the frontpage class, then use a custom template for your block that will display the xml-block gotten from the same frontpage object it is on. This is of course not very flexible, as you can not have as many xml blocks as the dynamically-added ezflow blocks in the page. You might use a content edit handler or workflow event to display the xml-block editor when editing the frontpage and storing the actual xml-block contents in some offline storage (ie. custom "holder" containers), but that would most likely be a lot of work...

Principal Consultant International Business
Member of the Community Project Board

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 00:56:57
Script start
Timing: Jan 18 2025 00:56:57
Module start 'layout'
Timing: Jan 18 2025 00:56:57
Module start 'content'
Timing: Jan 18 2025 00:56:58
Module end 'content'
Timing: Jan 18 2025 00:56:58
Script end

Main resources:

Total runtime0.1543 sec
Peak memory usage4,096.0000 KB
Database Queries74

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0043 588.1875152.6563
Module start 'layout' 0.00430.0027 740.843839.5078
Module start 'content' 0.00700.1459 780.3516697.6328
Module end 'content' 0.15290.0013 1,477.984416.1016
Script end 0.1543  1,494.0859 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00281.8144160.0002
Check MTime0.00110.7159160.0001
Mysql Total
Database connection0.00070.468010.0007
Mysqli_queries0.094861.4612740.0013
Looping result0.00070.4376720.0000
Template Total0.125681.420.0628
Template load0.00181.139420.0009
Template processing0.123880.221620.0619
Template load and register function0.00020.160110.0002
states
state_id_array0.00080.486710.0008
state_identifier_array0.00070.457520.0004
Override
Cache load0.00150.9659270.0001
Sytem overhead
Fetch class attribute can translate value0.00050.335850.0001
Fetch class attribute name0.00110.6910100.0001
XML
Image XML parsing0.00593.792050.0012
class_abstraction
Instantiating content class attribute0.00000.0131100.0000
General
dbfile0.00473.0747340.0001
String conversion0.00000.005340.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
6content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
4content/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: 24
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs