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.

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

Main resources:

Total runtime0.2066 sec
Peak memory usage4,096.0000 KB
Database Queries72

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0063 589.2266152.6406
Module start 'layout' 0.00630.0036 741.867239.4766
Module start 'content' 0.00990.1949 781.3438656.7109
Module end 'content' 0.20480.0018 1,438.054716.1172
Script end 0.2066  1,454.1719 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00321.5567160.0002
Check MTime0.00130.6205160.0001
Mysql Total
Database connection0.00090.418110.0009
Mysqli_queries0.141468.4320720.0020
Looping result0.00070.3581700.0000
Template Total0.175685.020.0878
Template load0.00241.170220.0012
Template processing0.173283.819620.0866
Template load and register function0.00010.067710.0001
states
state_id_array0.00130.629210.0013
state_identifier_array0.00140.655620.0007
Override
Cache load0.00211.0051280.0001
Sytem overhead
Fetch class attribute can translate value0.00050.243640.0001
Fetch class attribute name0.00120.567890.0001
XML
Image XML parsing0.00482.336340.0012
class_abstraction
Instantiating content class attribute0.00000.0123110.0000
General
dbfile0.00422.0258310.0001
String conversion0.00000.005040.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
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/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: 19
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs