Forums / Extensions / eZ Flow / Control the order of items in manual blocks

Control the order of items in manual blocks

Author Message

Elena Stoycheva

Monday 07 June 2010 1:24:30 am

Hi, there!

I've been using this great extension for a long time. However, during the process of improving frontpage objects with layout attributes in my projects, I've got the necessity to control the order of valid nodes added in the ezflow blocks ( both manual and dynamic ). Is that possible? About dynamic blocks probably a new fetch function might be added, but I'm not quire sure how exactly to do this. As far as to the manual blocks, when a number of valid nodes had been added, the system interprets such blocks as stacks in which the last added item is first published. Is there any way to change this order? I'll appreciate any help and advices!

Best regards,

Eli

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

Łukasz Serwatka

Monday 07 June 2010 6:56:07 am

Which eZ Flow version do you use? In latest eZ Flow version you can change order in manual blocks using drag and drop functionality (in the frontpage edit mode). This relates to both valid nodes and items in the queue. When it comes to the dynamic blocks you have to change fetching options on the PHP level. Take a look how it is done in the extension/ezflow/classes/fetches/ezflowlatestcontent.php or in extension/ezflow/classes/fetches/ezflowlatestobjects.php

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Michael Lee

Monday 27 September 2010 1:47:32 am

In fact, the drop & drop does not work. After you drag & drop the items and publish the front-page, the order of items will be restored. Looks like, once you drag & drop the items, the ezflow will sort the items by the "show or display date/time", not by priority.

Michael Lee | Managing Director | ZerusTech Ltd | www.zerustech.com

Skype: zerustech

Romeo Antony

Monday 04 October 2010 12:25:42 am

Michael, have you did this?

can u please help me. I need to get this done with manual block

Michael Lee

Monday 04 October 2010 2:47:11 am

Hi Romeo,

This issue has been fixed in ezflow 2.1 and 2.2, you can get it from http://svn.ez.no/svn/extensions/ezflow/stable/, or you can install the eZ Publish 4.4 community release ( it includes the latest stable releases of all important extensions).

The eZ Publish 4.4 community edition can be downloaded at http://share.ez.no/blogs/ez/the-base-of-the-community-project-ez-publish-fuji-4.4-released-today.-let-s-launch-the-rocket

Besides, you can also check issue.ez.no for any known issues and if it's already fixed, you can get a patch to fix it or you will know in which revision of the code base, the issue has been fixed. For this case, please refer to http://issues.ez.no/IssueView.php?Id=16594

Good luck :)

Michael

Michael Lee | Managing Director | ZerusTech Ltd | www.zerustech.com

Skype: zerustech

Romeo Antony

Monday 04 October 2010 11:47:00 pm

Michael , thanks a lot. I got u.

eZ debug

Timing: Jan 28 2025 18:40:12
Script start
Timing: Jan 28 2025 18:40:12
Module start 'content'
Timing: Jan 28 2025 18:40:12
Module end 'content'
Timing: Jan 28 2025 18:40:12
Script end

Main resources:

Total runtime0.1257 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0069 596.2734180.7578
Module start 'content' 0.00690.0078 777.0313102.9141
Module end 'content' 0.01470.1109 879.9453532.1719
Script end 0.1256  1,412.1172 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00312.4714200.0002
Check MTime0.00120.9712200.0001
Mysql Total
Database connection0.00060.484710.0006
Mysqli_queries0.084567.23241410.0006
Looping result0.00100.75691390.0000
Template Total0.110587.910.1105
Template load0.00080.608710.0008
Template processing0.109787.305610.1097
Override
Cache load0.00050.431210.0005
Sytem overhead
Fetch class attribute can translate value0.00050.399310.0005
XML
Image XML parsing0.00020.179110.0002
General
dbfile0.00786.2000200.0004
String conversion0.00000.004030.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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs