Edit content - self

Author Message

Stéphane Cloutier

Sunday 19 October 2003 9:49:56 am

How would you add a button to edit content created by oneself? I seem to not find any docs on this site about doing this.

Qupanuaq - Snow bunting

Adolfo Barragán

Friday 24 October 2003 12:00:32 am

In my site I did it so:

{section name=Announcements loop=$announcement_list}
...
{section show=eq($current_user.contentobject_id, $Announcements:item.object.owner_id)}
<form name="edit_announcement" method="post" action={"content/action"|ezurl}>
<input type="hidden" name="ContentObjectID" value="{$Announcements:item.contentobject_id}" />
<input class="button" type="submit" name="EditButton" value="{'Edit'|i18n('design/standard/node/view')}" />
</form>
{/section}
...

I hope this help you

Regards
Adolfo Barragán

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 20:56:09
Script start
Timing: Jan 18 2025 20:56:09
Module start 'layout'
Timing: Jan 18 2025 20:56:09
Module start 'content'
Timing: Jan 18 2025 20:56:10
Module end 'content'
Timing: Jan 18 2025 20:56:10
Script end

Main resources:

Total runtime0.8253 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0072 587.8125152.6094
Module start 'layout' 0.00720.0037 740.421939.4141
Module start 'content' 0.01090.8126 779.8359521.2266
Module end 'content' 0.82350.0017 1,301.06258.1875
Script end 0.8252  1,309.2500 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.4023160.0002
Check MTime0.00130.1616160.0001
Mysql Total
Database connection0.00080.102910.0008
Mysqli_queries0.761292.2331540.0141
Looping result0.00070.0838520.0000
Template Total0.773193.720.3866
Template load0.00200.238420.0010
Template processing0.771293.444420.3856
Template load and register function0.00020.021610.0002
states
state_id_array0.00490.592910.0049
state_identifier_array0.00100.115420.0005
Override
Cache load0.00160.1915190.0001
Sytem overhead
Fetch class attribute can translate value0.00060.076320.0003
Fetch class attribute name0.00120.146530.0004
XML
Image XML parsing0.01131.366420.0056
class_abstraction
Instantiating content class attribute0.00000.000830.0000
General
dbfile0.01181.4339160.0007
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
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.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
2content/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: 11
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs