Forums / Setup & design / How to customize the edit object function

How to customize the edit object function

Author Message

Bill Smith

Tuesday 05 December 2006 7:31:40 pm

Hi, all

I want to embed the edit object function in my system

and let the user can create and edit their own object.

but now ,the problem is that I don't want the select language page during the editing function

how can I omit that page during edit

and also the Possible edit conflict page

how can I avoid the appearence of these pages

Thanks very much

Pierre-Yves Savard

Tuesday 19 December 2006 6:03:30 am

I have the same problems.

Can someone answer this thread.

Thank you.

valentina ferrari

Wednesday 20 December 2006 5:34:06 am

Hi Bill,
you have to copy in your custom design these files:

../design/standard/templates/content/edit.tpl
../design/standard/templates/content/edit_attribute.tpl
../design/standard/templates/content/edit_draft.tpl
../design/standard/templates/content/edit_languages.tpl
../design/standard/templates/content/edit_placement.tpl
../design/standard/templates/content/edit_right_menu.tpl
../design/standard/templates/content/edit_validation.tpl

So you have:
..design/YourSite/override/templates/content/edit.tpl
..design/YourSite/override/templates/content/edit_attribute.tpl
etc.

In "edit.tpl" you find all the include of other files.
Remember to clear cache before testing your changes!

Sorry for my english!
Valentina

Bill Smith

Thursday 21 December 2006 10:09:03 pm

Hi, This is the way I solve this problem

for the select language page, just simply add /f/eng-US to the edit link

e.g. concat("/content/edit/",$object.id,"/f/eng-US")|ezurl

for the edit conflict page, no good solution

but in my case, user can only edit the object he create

so I first write a method to check whether the newest version to the published version

If it's create a new version

if not, just call the current newest version as the draft

eZ debug

Timing: Jan 18 2025 11:38:24
Script start
Timing: Jan 18 2025 11:38:24
Module start 'content'
Timing: Jan 18 2025 11:38:24
Module end 'content'
Timing: Jan 18 2025 11:38:25
Script end

Main resources:

Total runtime0.9644 sec
Peak memory usage4,096.0000 KB
Database Queries199

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 587.8438180.8125
Module start 'content' 0.00490.8309 768.6563560.3359
Module end 'content' 0.83580.1286 1,328.9922337.3672
Script end 0.9643  1,666.3594 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00410.4204210.0002
Check MTime0.00150.1577210.0001
Mysql Total
Database connection0.00070.071210.0007
Mysqli_queries0.889192.19661990.0045
Looping result0.00230.24311970.0000
Template Total0.939297.420.4696
Template load0.00220.229820.0011
Template processing0.936997.152820.4685
Template load and register function0.00010.015010.0001
states
state_id_array0.00100.104410.0010
state_identifier_array0.00130.129720.0006
Override
Cache load0.00190.2007440.0000
Sytem overhead
Fetch class attribute can translate value0.00150.155240.0004
Fetch class attribute name0.00110.109860.0002
XML
Image XML parsing0.00520.538340.0013
class_abstraction
Instantiating content class attribute0.00000.001260.0000
General
dbfile0.00590.6137320.0002
String conversion0.00000.000530.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
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 21
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs