Create / Remove / Edit a object from the Pagelayout

Author Message

Leandro Alves

Thursday 08 July 2004 4:32:29 am

Hi!

I'd like to allow my users to create, to remove and to edit ez's objects (article, file...) from the main site, not from admin page...

In eZ 3.3-5 demo there is how to create, but not how to edit the object created and how to remove it.

<b>Example of button for "New File" from eZ 3.3-5 demo</b>

{default content_object=$node.object
         content_version=$node.contentobject_version_object
         node_name=$node.name}
{section show=$content_object.can_create}

{section show=$node.path_array[2]|eq(62)}
<form method="post" action={"content/action"|ezurl}>
  <input type="hidden" name="NodeID" value="{$node.node_id}" />
  <input type="hidden" name="ClassID" value="12" />
  <input class="button" type="submit" name="NewButton" value="New file" />
</form>
{/section}

{/section}
{/default}

Its work fine!

But now, <b>How Can I remove or edit this file created?</b>

Thanks!
Leandro

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 16:13:48
Script start
Timing: Jan 18 2025 16:13:48
Module start 'layout'
Timing: Jan 18 2025 16:13:48
Module start 'content'
Timing: Jan 18 2025 16:13:49
Module end 'content'
Timing: Jan 18 2025 16:13:49
Script end

Main resources:

Total runtime0.7853 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.0063 589.1641152.6406
Module start 'layout' 0.00630.0025 741.804739.4922
Module start 'content' 0.00880.7748 781.2969402.5938
Module end 'content' 0.78360.0016 1,183.89068.1250
Script end 0.7852  1,192.0156 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4264160.0002
Check MTime0.00140.1836160.0001
Mysql Total
Database connection0.00100.123410.0010
Mysqli_queries0.741994.4828460.0161
Looping result0.00040.0543440.0000
Template Total0.751695.720.3758
Template load0.00220.276520.0011
Template processing0.749495.435120.3747
Template load and register function0.00020.019610.0002
states
state_id_array0.00080.106410.0008
state_identifier_array0.00230.291720.0011
Override
Cache load0.00180.2288120.0001
Sytem overhead
Fetch class attribute can translate value0.00070.090710.0007
Fetch class attribute name0.00070.085710.0007
XML
Image XML parsing0.00010.013610.0001
class_abstraction
Instantiating content class attribute0.00000.000410.0000
General
dbfile0.00130.1689100.0001
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/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/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.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: 8
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs