Edit user profile - non-multilanguage

Author Message

Clemens T

Tuesday 08 April 2008 4:41:16 am

Heya all,

I've transformed my old website from single language to multilanguage. But after this transformation the following problem arises:

When a users edits his profile it asks him whether to edit it in English or Dutch. And if he would like to make a new instance of the profile. This while all the attributes of my 'user' class are intranslatable.

Here's some (old) code from my template where the user can press a button to edit his profile:

<form action="/index.php/plain/content/edit/{$current_user.contentobject_id}/{$current_user.version}" method="post" name="Edit">
<input class="button" type="submit" name="EditButton" value="{'Edit profile'|i18n('design/standard/user')}" />
</form>

The form action should probably not be hardcoded like this, but what should it look like to avoid the problem with the multi-language edit?

Is there any way I can make one class not multi-language while the others just are.

Greetings and thanks as always,

Clemens

Tony Wood

Tuesday 08 April 2008 5:28:50 am

Hi

What version of eZ are you running? and what is the DB encoding?

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

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 20 2025 20:13:17
Script start
Timing: Jan 20 2025 20:13:17
Module start 'layout'
Timing: Jan 20 2025 20:13:17
Module start 'content'
Timing: Jan 20 2025 20:13:19
Module end 'content'
Timing: Jan 20 2025 20:13:19
Script end

Main resources:

Total runtime1.1587 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0040 589.0547151.2109
Module start 'layout' 0.00400.0026 740.265636.6484
Module start 'content' 0.00661.1512 776.9141548.3984
Module end 'content' 1.15780.0008 1,325.31258.0000
Script end 1.1586  1,333.3125 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.2515160.0002
Check MTime0.00120.1016160.0001
Mysql Total
Database connection0.00050.041410.0005
Mysqli_queries1.121496.7865540.0208
Looping result0.00050.0400520.0000
Template Total1.127997.320.5640
Template load0.00180.158420.0009
Template processing1.126197.187020.5630
Template load and register function0.00010.012410.0001
states
state_id_array0.00110.093810.0011
state_identifier_array0.00270.233820.0014
Override
Cache load0.00150.1271160.0001
Sytem overhead
Fetch class attribute can translate value0.00110.095420.0006
Fetch class attribute name0.00070.063230.0002
XML
Image XML parsing0.00300.260320.0015
class_abstraction
Instantiating content class attribute0.00000.000630.0000
General
dbfile0.00310.2709160.0002
String conversion0.00000.000540.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
3content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 9
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs