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