Priorities of nodes ?

Author Message

Fou Jino

Wednesday 23 March 2011 6:12:44 am

Hi everyone,

I have a question about the priority of node in backend of ez publish

I have a list of folder and that I drag&drop to change their priority in my backend (admin), but in my front-end, the order of priorities it's not respected everywhere !

I tried with the sort parameter but it doesn't work, do you have an idea ?

Thanks in advance !

Foujino ~ http://www.foujino-blog.be

Marko Žmak

Wednesday 23 March 2011 7:23:46 am

What's the code of your fetch?

Note: The drag&drop functionality was removed in newer versions of eZP (i believe it was in 4.3), so you shouldn't much rely on it. What version of eZP do you have?

--
Nothing is impossible. Not if you can imagine it!

Hubert Farnsworth

Fou Jino

Thursday 24 March 2011 12:53:14 am

Hi Marko,

Here my fetch :

{def $folders-level3 = fetch( 'content',
'list',
hash( parent_node_id, $folder-level2.node_id, 'class_filter_type', 'include',
'class_filter_array', array( 'folder' ) ))}

But in fact, I had a wrong fetch at level of "sort by", because I used this line for parameter of my sort :

'sort_by', array( 'priority')

And the right line is :

'sort_by', array( 'priority', true() )

So it solved, thanks anyway !!

Foujino ~ http://www.foujino-blog.be

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

Main resources:

Total runtime1.5599 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0054 588.9453152.6094
Module start 'layout' 0.00540.0033 741.554739.4219
Module start 'content' 0.00871.5494 780.9766535.6563
Module end 'content' 1.55810.0017 1,316.632812.1875
Script end 1.5598  1,328.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.2108160.0002
Check MTime0.00130.0852160.0001
Mysql Total
Database connection0.00120.073810.0012
Mysqli_queries1.503696.3942570.0264
Looping result0.00060.0367550.0000
Template Total1.515697.220.7578
Template load0.00230.144420.0011
Template processing1.513397.014520.7567
Template load and register function0.00020.011910.0002
states
state_id_array0.00150.098810.0015
state_identifier_array0.00170.108520.0008
Override
Cache load0.00190.1203240.0001
Sytem overhead
Fetch class attribute can translate value0.00090.059720.0005
Fetch class attribute name0.00140.089840.0004
XML
Image XML parsing0.00120.078720.0006
class_abstraction
Instantiating content class attribute0.00000.000740.0000
General
dbfile0.00420.2673180.0002
String conversion0.00000.000440.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
3content/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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.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: 6

Time used to render debug report: 0.0001 secs