Link to edit object

Author Message

Martynas Bilevičius

Tuesday 08 July 2008 6:42:55 am

Hello, hot to creat link to edit some node but i need edit only in one langugage.

For example /content/edit/<object_id> but how to creat link to edit object without draft selection.

and in administration i sea links like this: /content/edit/199/f/eng-EN that is "f" or also can be 'a'.

Ivo Lukac

Tuesday 08 July 2008 9:10:57 am

Hi Martynas,

There is a setting which can help you in site.ini :
[ContentSettings]
# Use 'showversions' to select which version to edit, or 'usecurrent' to always edit the current version.
EditDirtyObjectAction=showversions

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Martynas Bilevičius

Wednesday 09 July 2008 8:10:43 am

Yes it help very much with draft.

Or that strukcture is creat link to delete some node o oject like in adminstration delete.
Somfing like content/removeobject. I dont find any documentation.

Ivo Lukac

Wednesday 09 July 2008 10:44:45 am

AFAIK there is no direct link to delete object...

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Martynas Bilevičius

Wednesday 09 July 2008 10:59:45 am

So it is way how to delete object created by user, i creat some forms using user can creat and edit ojects. Then users logins they can creat and edit some objects, but how do that they can also and delet object which they creat. But i dont want use eZ website toolbar. So now i creat link to list all created user object but how to do wthat user also can deletet selected object not only edit.

Ivo Lukac

Wednesday 09 July 2008 12:26:18 pm

You can create button like this:

<form method="post" action={"content/action"|ezurl} >
    <input type="hidden" name="ContentNodeID"  value="{$node.node_id}" />
    <input type="hidden" name="ContentObjectID" value="{$node.object.id}" />
    <input type="submit" name="ActionRemove" value="Remove" />
</form>

You can turn this button into simple link using ezpopupmenu javascript:

<a href="#" onclick="ezpopmenu_submitForm( 'remove' ); return false;">Remove</a>
<form method="post" action={"content/action"|ezurl} id="remove">
    <input type="hidden" name="ContentNodeID"  value="{$node.node_id}" />
    <input type="hidden" name="ContentObjectID" value="{$node.object.id}" />
    <input type="hidden" name="ActionRemove" value="" />
</form>

include popupmenu/ezpopupmenu.js in your pagelayout.tpl

http://www.linkedin.com/in/ivolukac
http://www.netgen.hr/eng/blog
http://twitter.com/ilukac

Martynas Bilevičius

Friday 11 July 2008 3:07:47 am

Thanks

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.