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.

eZ debug

Timing: Jan 18 2025 16:24:44
Script start
Timing: Jan 18 2025 16:24:44
Module start 'layout'
Timing: Jan 18 2025 16:24:44
Module start 'content'
Timing: Jan 18 2025 16:24:45
Module end 'content'
Timing: Jan 18 2025 16:24:45
Script end

Main resources:

Total runtime0.7965 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.0057 589.0313152.6250
Module start 'layout' 0.00570.0028 741.656339.4453
Module start 'content' 0.00850.7866 781.1016502.2813
Module end 'content' 0.79520.0013 1,283.38288.1641
Script end 0.7965  1,291.5469 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4440160.0002
Check MTime0.00130.1614160.0001
Mysql Total
Database connection0.00060.077610.0006
Mysqli_queries0.752594.4678570.0132
Looping result0.00050.0624550.0000
Template Total0.766796.320.3834
Template load0.00190.243820.0010
Template processing0.764896.013620.3824
Template load and register function0.00010.016910.0001
states
state_id_array0.00070.092310.0007
state_identifier_array0.00090.112620.0004
Override
Cache load0.00160.2038230.0001
Sytem overhead
Fetch class attribute can translate value0.00060.078820.0003
Fetch class attribute name0.00100.121630.0003
XML
Image XML parsing0.00020.027720.0001
class_abstraction
Instantiating content class attribute0.00000.001030.0000
General
dbfile0.00060.0752100.0001
String conversion0.00000.000840.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/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: 6

Time used to render debug report: 0.0001 secs