Forums / Developer / Admin to main site toggle switcher

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