Moving nodes within a node tree level

Author Message

Bastian Fenske

Sunday 30 March 2008 4:26:28 am

Hi.

I want to add two buttons/links to the eZ Website Interface toolbar to move a node/page up and down in the nodes tree (I think I have to update the priority attribute of the nodes). I don`t want to change the parent node.

I am new to eZ Publish – how can I implement this? Is there any mapping/routing from some kind of links to my own action classes/functions I can put anywhere? And how can I get the request information there and manipulate the nodes?

Basti

Bastian Fenske

Monday 31 March 2008 2:37:53 am

Okay, I modified /kernel/content/action.php:

http://phpfi.com/306446

This now changes the priority value of the current node and all of its siblings.

One problem is left:
The main menu won't change at the homepage (only there). This is not a browser/proxy cache poblem and "manually" clearing the eZ Publish cache wont help.

I fetch the data in this way:

{def
	$mainMenu=treemenu($module_result.path,,,0,3)
	$block=1
	$text=''
	$level=0
	$indention=''
	$lastlevel=0
	$blockMenu=0
}

Basti

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

Main resources:

Total runtime0.8036 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 589.4453152.6250
Module start 'layout' 0.00520.0024 742.070339.4453
Module start 'content' 0.00770.7945 781.5156425.6406
Module end 'content' 0.80210.0014 1,207.15638.1563
Script end 0.8035  1,215.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.3566160.0002
Check MTime0.00120.1543160.0001
Mysql Total
Database connection0.00080.095410.0008
Mysqli_queries0.762594.8924520.0147
Looping result0.00040.0540500.0000
Template Total0.774596.420.3873
Template load0.00220.269920.0011
Template processing0.772496.118420.3862
Template load and register function0.00030.034110.0003
states
state_id_array0.00100.127310.0010
state_identifier_array0.00180.221020.0009
Override
Cache load0.00160.1933160.0001
Sytem overhead
Fetch class attribute can translate value0.00090.106210.0009
Fetch class attribute name0.00160.199520.0008
XML
Image XML parsing0.00010.014210.0001
class_abstraction
Instantiating content class attribute0.00000.000920.0000
General
dbfile0.00060.0740100.0001
String conversion0.00000.001140.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
2content/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/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 10
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs