get Admin edit url an object

Author Message

Ousmane KANTE

Wednesday 31 January 2007 3:30:32 am

hello,

I want to get the admin url from the user_site.
when an editor/administrator (or someone who <b>can</b> edit certain node) is connected through "public" site, i want him to access the admin edit url of this node.

for exemple : user interface edit url is something like: http://www.mysite.com/index.php/public_siteaccess/content/edit/57/f/fre-FR
and i want him to edit using admin interface that's somthing like :
http://localhost/ezp/index.php/plain_site_admin/content/edit/57/f/fre-FR

how can I do such a thing ?
thanks

Consultant Ez Publish- Sapiens Consulting

Marius Eliassen

Wednesday 31 January 2007 3:52:53 am

Yes but unless you make ur own extension you have to hardcode the link

like

{if $node.can_edit}
<a href="http://www.site.com/index.php/siteaccess_admin/content/edit/{$node.contentobject_id}/">Edit</a>
{/if}

Also, this might require him to login to the admin interface unless he allready is.

The better way to do this is to actually modify the design of the edit templates that they allow your editors to edit the node on the public siteaccess, this is a more futuristic approach as we go into web 2.0 standards.

Ousmane KANTE

Wednesday 31 January 2007 4:18:22 am

thanks,

but i don't see how to write an extension to, perform this switching.
In fact, it's just a normal switching between both siteaccess (admin and public)

Can someone give me tips to write such a special extension ?
Thanks,

Consultant Ez Publish- Sapiens Consulting

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.