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.

eZ debug

Timing: Jan 18 2025 11:16:49
Script start
Timing: Jan 18 2025 11:16:49
Module start 'layout'
Timing: Jan 18 2025 11:16:49
Module start 'content'
Timing: Jan 18 2025 11:16:50
Module end 'content'
Timing: Jan 18 2025 11:16:50
Script end

Main resources:

Total runtime0.7670 sec
Peak memory usage4,096.0000 KB
Database Queries69

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0047 589.3359152.6250
Module start 'layout' 0.00470.0029 741.960939.4297
Module start 'content' 0.00760.7576 781.3906584.2422
Module end 'content' 0.76520.0017 1,365.632816.1875
Script end 0.7669  1,381.8203 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00310.3995160.0002
Check MTime0.00130.1680160.0001
Mysql Total
Database connection0.00070.090510.0007
Mysqli_queries0.711292.7199690.0103
Looping result0.00070.0865670.0000
Template Total0.741096.620.3705
Template load0.00220.282420.0011
Template processing0.738896.319520.3694
Template load and register function0.00030.033110.0003
states
state_id_array0.00030.045110.0003
state_identifier_array0.00080.102120.0004
Override
Cache load0.00180.2409310.0001
Sytem overhead
Fetch class attribute can translate value0.00070.091020.0003
Fetch class attribute name0.00180.240880.0002
XML
Image XML parsing0.00090.115320.0004
class_abstraction
Instantiating content class attribute0.00000.0055100.0000
General
dbfile0.00070.0910170.0000
String conversion0.00000.001040.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
11content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs