How to remove objects from a section

Author Message

Tim Kraska

Tuesday 19 July 2005 4:51:55 pm

I have setup my instance as a document management system so restricting access is one of the most important configurations.

In planning and setting it up I made to many sections and added content to some of the which I did not want in there any more.

How do you remove nodes or objects from a sections with out deleting the section?

When is it safe to delete a section?

Konrad Mazurkiewicz

Wednesday 20 July 2005 2:12:57 am

To move nodes or objects between sections you should use
"sections" from setup part and assign objects (folders, nodes) to other section.

Konrad

Frey Staso

Wednesday 20 July 2005 4:28:13 pm

In the admin section, if you click on the ICON of the object you want to remove, you get a context sensitive menu with "remove" on it.

Otherwise you can use this code to make an edit and delete button. It would delete the current object.

 <form action="/content/action" method="post">
                        <input type="hidden" name="NodeID" value="{$node.node_id}" />
                              <input type="hidden" name="ContentObjectID" value="{$node.contentobject_id}" />
                              <input type="hidden" name="ContentNodeID" value="{$node.node_id}" />
                              <input type="hidden" name="ContentObjectID" value="{$node.contentobject_id}" />
                              <input type="hidden" name="ViewMode" value="full" />
                              <input class="button" type="submit" name="EditButton" value="Edit" />
                              <input class="button" type="submit" name="ActionRemove" value="Delete"  />
</form>

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

Main resources:

Total runtime1.3056 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0040 588.2500151.2266
Module start 'layout' 0.00400.0031 739.476636.6797
Module start 'content' 0.00711.2979 776.1563959.7578
Module end 'content' 1.30490.0007 1,735.914111.8281
Script end 1.3056  1,747.7422 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.2216160.0002
Check MTime0.00120.0923160.0001
Mysql Total
Database connection0.00050.039810.0005
Mysqli_queries1.256196.2060590.0213
Looping result0.00060.0485570.0000
Template Total1.259596.520.6298
Template load0.00230.177120.0012
Template processing1.257296.290920.6286
Template load and register function0.00140.105410.0014
states
state_id_array0.00150.114310.0015
state_identifier_array0.00650.498020.0033
Override
Cache load0.00190.1429160.0001
Sytem overhead
Fetch class attribute can translate value0.00070.050030.0002
Fetch class attribute name0.00180.135540.0004
XML
Image XML parsing0.00070.054830.0002
class_abstraction
Instantiating content class attribute0.00000.000840.0000
General
dbfile0.00080.0647160.0001
String conversion0.00000.000540.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
3content/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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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: 11
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs