Edit action buttons

Author Message

Stuart DH

Tuesday 03 August 2004 4:39:07 pm

I'm working with the 'News' demo site and have created a folder with a new class that, when published, shows in the frontend with 'Default object view. Click to create a custom template...'. At the bottom of the page it also includes five buttons - edit, preview, remove, add to bookmarks etc that enable me to easily change to content of the page without having to go through the backend.

Creating a custom template is easy enough, but doing so removes the buttons and authorised users can no longer edit the page in the frontend.

Could someone point me in the direction of the template that supplies these buttons or possibly give some tips on how I should include them in a custom template.

Cheers

Stuart

http://www.wildaboutbritain.co.uk

Stuart DH

Wednesday 04 August 2004 12:06:07 am

I guess the easy thing to do would be to copy the 'Default object view...' template to make an override, but I can't find that template anywhere either.

Any help would be much appreciated

Stuart

http://www.wildaboutbritain.co.uk

Stuart DH

Wednesday 04 August 2004 12:17:44 am

I think I've found it at standard/templates/node/view/full.tpl and so I'll create a copy to override that then edit it to suit my required layout and see how things work out.

http://www.wildaboutbritain.co.uk

steve walker

Wednesday 04 August 2004 12:18:35 am

Stuart,

If you want template information add the lines:

[TemplateSettings]
Debug=enabled

to your site.ini.append.php file - it'll show you the exact path and templates that are being used by your site.

Steve.

http://www.oneworldmarket.co.uk

Stuart DH

Wednesday 04 August 2004 12:23:05 am

Cheers Steve,

That's a top tip :) I've never really read too much from the debug info when I've used it in the past and didn't realise it contained info about the templates etc...I guess I should pay more attention to it in the future.

Thanks

http://www.wildaboutbritain.co.uk

Stuart DH

Wednesday 04 August 2004 12:25:49 am

Just thinking one step ahead...is it easy enough to replace the edit, preview, remove, add bookmarks buttons with more discreet and funky icons?

It would be great to have 25x25 pixel icons of a pencil, screen, eraser, book etc

http://www.wildaboutbritain.co.uk

Paul Borgermans

Friday 06 August 2004 10:18:47 am

Hi Stuart

Yes you can use cool images instead of a button, that's standard in xhtml forms.

See for example

http://ez.no/community/forum/developer/how_can_create_remove_edit_a_object_from_the_pagelayout/re_how_can_create_remove_edit_a_object_from_the_pagelayout

hth

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

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 22:23:47
Script start
Timing: Jan 18 2025 22:23:47
Module start 'layout'
Timing: Jan 18 2025 22:23:47
Module start 'content'
Timing: Jan 18 2025 22:23:48
Module end 'content'
Timing: Jan 18 2025 22:23:48
Script end

Main resources:

Total runtime0.7948 sec
Peak memory usage4,096.0000 KB
Database Queries71

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0077 589.2188152.6094
Module start 'layout' 0.00770.0027 741.828139.4297
Module start 'content' 0.01040.7831 781.2578608.4297
Module end 'content' 0.79350.0013 1,389.687516.1875
Script end 0.7948  1,405.8750 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3982160.0002
Check MTime0.00140.1760160.0001
Mysql Total
Database connection0.00100.120810.0010
Mysqli_queries0.737892.8278710.0104
Looping result0.00070.0902690.0000
Template Total0.766396.420.3831
Template load0.00250.308520.0012
Template processing0.763896.100220.3819
Template load and register function0.00050.065310.0005
states
state_id_array0.00110.140910.0011
state_identifier_array0.00070.087820.0003
Override
Cache load0.00200.2539360.0001
Sytem overhead
Fetch class attribute can translate value0.00050.061030.0002
Fetch class attribute name0.00140.171280.0002
XML
Image XML parsing0.00070.091230.0002
class_abstraction
Instantiating content class attribute0.00000.001880.0000
General
dbfile0.00080.0967170.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
7content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs