Forums / General / Edit action buttons

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

eZ debug

Timing: Jan 18 2025 19:27:46
Script start
Timing: Jan 18 2025 19:27:46
Module start 'content'
Timing: Jan 18 2025 19:27:46
Module end 'content'
Timing: Jan 18 2025 19:27:46
Script end

Main resources:

Total runtime0.8719 sec
Peak memory usage4,096.0000 KB
Database Queries208

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0091 589.0313180.8516
Module start 'content' 0.00910.7337 769.8828613.4922
Module end 'content' 0.74280.1291 1,383.3750337.0781
Script end 0.8719  1,720.4531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.5176210.0002
Check MTime0.00160.1787210.0001
Mysql Total
Database connection0.00130.153110.0013
Mysqli_queries0.791490.76182080.0038
Looping result0.00230.26642060.0000
Template Total0.827094.820.4135
Template load0.00260.294920.0013
Template processing0.824494.550320.4122
Template load and register function0.00020.023310.0002
states
state_id_array0.00270.306510.0027
state_identifier_array0.00100.115720.0005
Override
Cache load0.00210.2427360.0001
Sytem overhead
Fetch class attribute can translate value0.00090.105040.0002
Fetch class attribute name0.00130.148380.0002
XML
Image XML parsing0.00120.138340.0003
class_abstraction
Instantiating content class attribute0.00000.001980.0000
General
dbfile0.00270.3068280.0001
String conversion0.00000.000930.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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