Front editing and "inline" content

Author Message

Sébastien Antoniotti

Wednesday 09 February 2011 8:16:55 am

Hi !

I would like to know how some of you set up the administration (add, edit, delete) of images displayed into galleries when the user is logged on the frontoffice (with the ezwebin toolbar of course).

For example, on a page if we have a photo gallery where the zoom is provided by a lightbox, the url of the full view of the image is never accessible.

Thus, we can not use the ezwebin toolbar to edit or delete images in the gallery.
Same goes for adding images, if images are placed in a folder under the page like this ...

Home
- My gallery (folder or gallery instance)
---- Image 1 (image)
---- Image 2 (image)
---- Picture N (image)

... we do not have access to the node My Gallery to created new images (still from the ezwebin toolbar).

There is the possibility to modify the template that displays the gallery to place under it a link to the full view of "My gallery" only when a user is logged-in but it seems not very user friendly for editors ...

Thanks in advance for your tips !

eZ Publish Freelance
web : http://www.webaxis.fr

Peter Keung

Wednesday 09 February 2011 8:40:25 am

In cases such as this, we have a separate "webin" siteaccess. Then, we can create an editor-specific full view override template for the special container classes. The template lists the children, even with edit buttons next to them if necessary. To preserve the ability for editors to see what their content is going to look like, they can always use the preview functionality and select a different siteaccess.

http://www.mugo.ca
Mugo Web, eZ Partner in Vancouver, Canada

Sébastien Antoniotti

Thursday 10 February 2011 1:04:56 am

Hi Peter and thanks for this tips !

I'll think about an adaptation of this solution because I'm working on a website factory and I wanted to avoid to duplicate the siteaccesses for each site if possible...

eZ Publish Freelance
web : http://www.webaxis.fr

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 03:07:45
Script start
Timing: Jan 18 2025 03:07:45
Module start 'layout'
Timing: Jan 18 2025 03:07:45
Module start 'content'
Timing: Jan 18 2025 03:07:46
Module end 'content'
Timing: Jan 18 2025 03:07:46
Script end

Main resources:

Total runtime0.4190 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.0047 587.9219152.6250
Module start 'layout' 0.00470.0023 740.546939.4688
Module start 'content' 0.00700.4104 780.0156552.3516
Module end 'content' 0.41740.0015 1,332.367212.1563
Script end 0.4189  1,344.5234 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00290.6847160.0002
Check MTime0.00120.2792160.0001
Mysql Total
Database connection0.00070.167310.0007
Mysqli_queries0.373189.0393570.0065
Looping result0.00070.1641550.0000
Template Total0.393894.020.1969
Template load0.00200.475020.0010
Template processing0.391893.506120.1959
Template load and register function0.00010.019310.0001
states
state_id_array0.00080.183810.0008
state_identifier_array0.00070.164520.0003
Override
Cache load0.00160.3874240.0001
Sytem overhead
Fetch class attribute can translate value0.00060.149120.0003
Fetch class attribute name0.00120.292150.0002
XML
Image XML parsing0.00100.243920.0005
class_abstraction
Instantiating content class attribute0.00000.002060.0000
General
dbfile0.00100.2433230.0000
String conversion0.00000.001740.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/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs