Content edit button in frontoffice problem

Author Message

laurent le cadet

Thursday 27 September 2007 10:14:05 am

Hi,

I have a simple button use to edit a content class in frontoffice.
The site is multilinguage.
I don't know to have a complet url to skip edition choice language :)

That's were I am..

{def $locale  = ezini( 'RegionalSettings', 'Locale' , 'site.ini')}

<a href={concat( 'content/edit/', $Nodes.item.contentobject_id, '/', $locale )|ezurl}>

<img src={'images/btn_edit.gif'|ezdesign} alt="{'Edit'|i18n( 'design/admin/node/view/full' )}" title="{'Edit <%child_name>.'|i18n( 'design/admin/node/view/full',, hash( '%child_name', $child_name ) )|wash}" />

</a>

The object edit version is missing and the language choice message still prompting.
I'm don't really understand.

Any hint.

Regards.

Laurent

Ɓukasz Serwatka

Thursday 27 September 2007 3:39:29 pm

Hi Laurent,

Use "f" in edit url like:

<a href={concat( 'content/edit/', $Nodes.item.contentobject_id, '/f/', $locale )|ezurl}>

Alternatively you can provide url like:

/content/edit/54/f/fre-FR/eng-GB

Which create French translation based on eng-GB locale.

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

laurent le cadet

Friday 28 September 2007 2:01:41 am

Great Lukasz,

I couldn't have find taht myself ('f' ??)

Thanks.

Laurent

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 18:16:32
Script start
Timing: Jan 18 2025 18:16:32
Module start 'layout'
Timing: Jan 18 2025 18:16:32
Module start 'content'
Timing: Jan 18 2025 18:16:34
Module end 'content'
Timing: Jan 18 2025 18:16:34
Script end

Main resources:

Total runtime1.6475 sec
Peak memory usage4,096.0000 KB
Database Queries57

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0064 588.0469152.6406
Module start 'layout' 0.00640.0036 740.687539.4766
Module start 'content' 0.01001.6359 780.1641547.6250
Module end 'content' 1.64590.0016 1,327.789112.1250
Script end 1.6475  1,339.9141 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2130160.0002
Check MTime0.00140.0873160.0001
Mysql Total
Database connection0.00080.051610.0008
Mysqli_queries1.587896.3740570.0279
Looping result0.00070.0409550.0000
Template Total1.610097.720.8050
Template load0.00230.138020.0011
Template processing1.607797.583920.8038
Template load and register function0.00010.007010.0001
states
state_id_array0.00120.073210.0012
state_identifier_array0.00200.120020.0010
Override
Cache load0.00200.1191290.0001
Sytem overhead
Fetch class attribute can translate value0.00080.050920.0004
Fetch class attribute name0.00140.085250.0003
XML
Image XML parsing0.00110.069120.0006
class_abstraction
Instantiating content class attribute0.00000.000860.0000
General
dbfile0.00100.0623240.0000
String conversion0.00000.000640.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
7content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
3content/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: 20
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs