Programmaticlly moving nodes?

Author Message

Bruce Morrison

Friday 18 July 2003 12:56:59 am

I'm in the process of writing a program that will "expire" content based on a date attribute of a class. I'm not actually removing the content from the system simply moving it from one location to another.

I can find the content object and the node I want to move but actually moving a node from one parent to another is proving elusive.

Any help or pointers would be appreciated.

Cheers
Bruce
designIT

My Blog: http://www.stuffandcontent.com/
Follow me on twitter: http://twitter.com/brucemorrison
Consolidated eZ Publish Feed : http://friendfeed.com/rooms/ez-publish

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

Main resources:

Total runtime0.8151 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0103 587.9141152.6250
Module start 'layout' 0.01030.0034 740.539139.4453
Module start 'content' 0.01370.7998 779.9844462.1016
Module end 'content' 0.81350.0015 1,242.08598.1641
Script end 0.8150  1,250.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4099160.0002
Check MTime0.00140.1738160.0001
Mysql Total
Database connection0.00440.545110.0044
Mysqli_queries0.757892.9727460.0165
Looping result0.00060.0756440.0000
Template Total0.758993.120.3794
Template load0.00210.261920.0011
Template processing0.756792.840320.3784
Template load and register function0.00020.019610.0002
states
state_id_array0.00220.274710.0022
state_identifier_array0.00130.163020.0007
Override
Cache load0.00170.2082100.0002
Sytem overhead
Fetch class attribute can translate value0.00070.090710.0007
Fetch class attribute name0.00080.098520.0004
XML
Image XML parsing0.00040.046110.0004
class_abstraction
Instantiating content class attribute0.00000.000620.0000
General
dbfile0.00971.1893160.0006
String conversion0.00000.001040.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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
2content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 7
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs