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.