Forums / Setup & design / Content edit button in frontoffice problem

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

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