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.