Admin to main site toggle switcher

Author Message

Samuel Sauder

Thursday 07 September 2006 12:05:13 pm

I am working on some functionality that would allow our editors to edit a node in the admin interface from the public interface.

There are a couple things I see missing
-where in template code can I get the current siteaccess? (other than parsing ezurl or ezsys)
-how about the related admin vs. nonadmin siteaccess?
-if an editor is logged in to the public page, then goes to an admin site, why do they have to login again? Is there a single sign on option?

Norman Leutner

Thursday 07 September 2006 12:56:51 pm

Hi Samuel,

If you want to edit an object (node id 512) directly on you public siteaccess, go to the url /content/edit/512.

You'll see the standard edit.tpl there.

The second step is to override the standard design/standard/templates/content/edit.tpl for your public siteaccess within the settings/siteaccess/your_site/override.ini.append.php and to create your own edit.tpl

You can create different edit templates for different sections, classes, nodes, ...

Take a look at the documentation under
http://ez.no/doc/ez_publish/technical_manual/3_8/reference/template_functions/visualization
there you can find the attribute view gui which you can use to create custom edit templates within your public interface.

Hopes this helps a bit...

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

Norman Leutner

Thursday 07 September 2006 1:00:57 pm

I forgot:

the current siteacces var is

{$access_type.name}

Mit freundlichen Grüßen
Best regards

Norman Leutner

____________________________________________________________
eZ Publish Platinum Partner - http://www.all2e.com
http://ez.no/partners/worldwide_partners/all2e_gmbh

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

Main resources:

Total runtime0.0137 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 587.9219152.6250
Module start 'layout' 0.00550.0026 740.546939.4609
Module start 'content' 0.00810.0037 780.007889.3359
Module end 'content' 0.01180.0019 869.343834.3047
Script end 0.0136  903.6484 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002317.1644140.0002
Check MTime0.00107.6521140.0001
Mysql Total
Database connection0.00096.311310.0009
Mysqli_queries0.002619.131130.0009
Looping result0.00000.080210.0000
Template Total0.001611.910.0016
Template load0.00086.201510.0008
Template processing0.00085.666310.0008
Override
Cache load0.00064.519110.0006
General
dbfile0.00021.801080.0000
String conversion0.00000.052340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs