Forums / Setup & design / Link to edit object

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

eZ debug

Timing: Jan 18 2025 04:32:36
Script start
Timing: Jan 18 2025 04:32:36
Module start 'content'
Timing: Jan 18 2025 04:32:37
Module end 'content'
Timing: Jan 18 2025 04:32:38
Script end

Main resources:

Total runtime1.5363 sec
Peak memory usage4,096.0000 KB
Database Queries206

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 587.6875180.8438
Module start 'content' 0.00591.3994 768.5313589.3203
Module end 'content' 1.40520.1310 1,357.8516341.0859
Script end 1.5362  1,698.9375 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00430.2787210.0002
Check MTime0.00150.0993210.0001
Mysql Total
Database connection0.00060.036110.0006
Mysqli_queries1.458894.95542060.0071
Looping result0.00190.12262040.0000
Template Total1.505198.020.7525
Template load0.00210.134320.0010
Template processing1.503097.833120.7515
Template load and register function0.00020.012310.0002
states
state_id_array0.00170.109010.0017
state_identifier_array0.00230.149820.0012
Override
Cache load0.00180.1152310.0001
Sytem overhead
Fetch class attribute can translate value0.00120.078030.0004
Fetch class attribute name0.00130.085180.0002
XML
Image XML parsing0.00110.069230.0004
class_abstraction
Instantiating content class attribute0.00000.0017100.0000
General
dbfile0.00210.1392280.0001
String conversion0.00000.000330.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
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
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 27
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs