Forums / Setup & design / How to customize the edit object function
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.tpletc.
In "edit.tpl" you find all the include of other files.Remember to clear cache before testing your changes!
Sorry for my english!Valentina
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