Create Edit button for a new class

Author Message

Jens Kultima

Sunday 01 April 2007 1:35:19 pm

Hi!

I have searched the forum and yes, there have been some answers for this question but not exactly what I wanted to know.

Here is the story:
I have created a new class and an override template fot it. It works fine.

Now, I want my friends to be able to create new instances of this class directly from the homepage (being logged in). This also works fine.

Here comes the problem. When they are logged in I want them to be able to edit this class. But How do I get the "edit" button at the top to be shown?

This button is there for ie articles, but how do I add it to my own class?

nay help is much appreciated,
Regards Jens

Ɓukasz Serwatka

Sunday 01 April 2007 11:25:36 pm

Hello,

This tutorial might be useful:
http://ez.no/ezpublish/documentation/customization/tips_tricks/editing_creating_and_removing_content_from_the_user_page

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

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 19 2025 01:18:12
Script start
Timing: Jan 19 2025 01:18:12
Module start 'layout'
Timing: Jan 19 2025 01:18:12
Module start 'content'
Timing: Jan 19 2025 01:18:13
Module end 'content'
Timing: Jan 19 2025 01:18:13
Script end

Main resources:

Total runtime0.6372 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.0062 590.3750152.6250
Module start 'layout' 0.00620.0027 743.000039.4453
Module start 'content' 0.00890.6269 782.4453527.5859
Module end 'content' 0.63580.0014 1,310.03138.1563
Script end 0.6371  1,318.1875 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5144160.0002
Check MTime0.00130.2082160.0001
Mysql Total
Database connection0.00110.169610.0011
Mysqli_queries0.592693.0082540.0110
Looping result0.00050.0846520.0000
Template Total0.601394.420.3006
Template load0.00210.335120.0011
Template processing0.599194.026620.2996
Template load and register function0.00020.034310.0002
states
state_id_array0.00140.222710.0014
state_identifier_array0.00140.221120.0007
Override
Cache load0.00170.2729170.0001
Sytem overhead
Fetch class attribute can translate value0.00060.094120.0003
Fetch class attribute name0.00120.193430.0004
XML
Image XML parsing0.00060.100620.0003
class_abstraction
Instantiating content class attribute0.00000.001330.0000
General
dbfile0.00070.1171180.0000
String conversion0.00000.001340.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs