Share » Forums » Setup & design » Add buttons for add/remove/edit nodes

Add buttons for add/remove/edit nodes

Add buttons for add/remove/edit nodes

Friday 14 July 2006 1:34:41 pm - 6 replies

Author Message

Kristof Coomans

Tuesday 18 July 2006 2:01:23 am

Hi Frode

Is the JavaScript function ezpopmenu_submitForm loaded? Check any JavaScript errors in your browser.

Just out of curiosity, why do you want to use anchors instead of buttons? The code you're using disallows clients to use the form when JavaScript is disabled.

independent eZ Publish developer and service provider | http://blog.coomanskristof.be | http://ezpedia.org

Frode Slettum

Tuesday 18 July 2006 4:22:54 am

Hi, thank you for your reply. I was almost getting worried .. :)

ezpopmenu_submitForm loaded? I guess not :) I don't know anything about javascript so I guess I'll take a look at this. Nice that you sent me on the right track anyway ..

The reason I did it like this is that is more pretty with a text-link rather than a button.

If someone could comment the other challenges I'm experiencing as well I would be really grateful.

Ɓukasz Serwatka

Tuesday 18 July 2006 4:52:00 am

Hi,

This documentation page describes how to create/edit/remove content from the user side:
http://ez.no/products/ez_publish/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

Frode Slettum

Tuesday 18 July 2006 5:03:58 am

Thank you. Hope someone will update this kind of documentation to the new template language soon.

The last thing I haven't quite got figured out is where I should but these buttons. Is it normal to add the code to the override templates for the classes and control the access via the permission settings (roles, users etc), or play with override for certain sections.

Coulibaly Ibrahim

Wednesday 19 July 2006 1:39:14 am

First, you must put it in your templates.
second, this code doesn't allow your users to create objects if they don't have appropriate rights.
for exemple , you can have 2 users (with differents rights) using the same page and having different buttons.
it look up throught the permission to deplay or not the button.
don't forget that:

{section show=$node.object.can_create}{*or can_create*}
{*the form to create*}
{/section}

Frode Slettum

Wednesday 19 July 2006 1:49:43 am

Thank you all for good help.

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu