Forums / Extensions / eZ Flow / Is it possible to an XML text block to ezflow blocks?

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

eZ debug

Timing: Jan 18 2025 02:04:16
Script start
Timing: Jan 18 2025 02:04:16
Module start 'content'
Timing: Jan 18 2025 02:04:16
Module end 'content'
Timing: Jan 18 2025 02:04:16
Script end

Main resources:

Total runtime0.3962 sec
Peak memory usage4,096.0000 KB
Database Queries211

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0076 587.9844180.7578
Module start 'content' 0.00760.2185 768.7422702.7422
Module end 'content' 0.22610.1699 1,471.4844340.4063
Script end 0.3961  1,811.8906 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00431.0873210.0002
Check MTime0.00160.4016210.0001
Mysql Total
Database connection0.00080.207710.0008
Mysqli_queries0.303776.65492110.0014
Looping result0.00240.60532090.0000
Template Total0.355789.820.1779
Template load0.00240.610820.0012
Template processing0.353389.171320.1766
Template load and register function0.00020.057410.0002
states
state_id_array0.00140.344510.0014
state_identifier_array0.00100.264220.0005
Override
Cache load0.00200.5084270.0001
Sytem overhead
Fetch class attribute can translate value0.00160.411760.0003
Fetch class attribute name0.00150.3742100.0001
XML
Image XML parsing0.00411.031160.0007
class_abstraction
Instantiating content class attribute0.00000.0052100.0000
General
dbfile0.00862.1646450.0002
String conversion0.00000.001330.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs