Forums / Extensions / Front editing and "inline" content

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

eZ debug

Timing: Jan 29 2025 13:31:34
Script start
Timing: Jan 29 2025 13:31:34
Module start 'content'
Timing: Jan 29 2025 13:31:34
Module end 'content'
Timing: Jan 29 2025 13:31:34
Script end

Main resources:

Total runtime0.1249 sec
Peak memory usage2,048.0000 KB
Database Queries141

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0049 587.9531180.8359
Module start 'content' 0.00490.0054 768.789193.8984
Module end 'content' 0.01030.1145 862.6875523.3125
Script end 0.1248  1,386.0000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00312.4445200.0002
Check MTime0.00120.9566200.0001
Mysql Total
Database connection0.00060.441210.0006
Mysqli_queries0.083066.46631410.0006
Looping result0.00090.71061390.0000
Template Total0.114191.410.1141
Template load0.00080.669610.0008
Template processing0.113390.709610.1133
Override
Cache load0.00050.431710.0005
Sytem overhead
Fetch class attribute can translate value0.00050.376310.0005
XML
Image XML parsing0.00020.172210.0002
General
dbfile0.00876.9988200.0004
String conversion0.00000.005230.0000
Note: percentages do not add up to 100% because some accumulators overlap

CSS/JS files loaded with "ezjscPacker" during request:

CacheTypePacklevelSourceFiles
CSS0extension/community/design/community/stylesheets/ext/jquery.autocomplete.css
extension/community_design/design/suncana/stylesheets/scrollbars.css
extension/community_design/design/suncana/stylesheets/tabs.css
extension/community_design/design/suncana/stylesheets/roadmap.css
extension/community_design/design/suncana/stylesheets/content.css
extension/community_design/design/suncana/stylesheets/star-rating.css
extension/community_design/design/suncana/stylesheets/syntax_and_custom_tags.css
extension/community_design/design/suncana/stylesheets/buttons.css
extension/community_design/design/suncana/stylesheets/tweetbox.css
extension/community_design/design/suncana/stylesheets/jquery.fancybox-1.3.4.css
extension/bcsmoothgallery/design/standard/stylesheets/magnific-popup.css
extension/sevenx/design/simple/stylesheets/star_rating.css
extension/sevenx/design/simple/stylesheets/libs/fontawesome/css/all.min.css
extension/sevenx/design/simple/stylesheets/main.v02.css
extension/sevenx/design/simple/stylesheets/main.v02.res.css
JS0extension/ezjscore/design/standard/lib/yui/3.17.2/build/yui/yui-min.js
extension/ezjscore/design/standard/javascript/jquery-3.7.0.min.js
extension/community_design/design/suncana/javascript/jquery.ui.core.min.js
extension/community_design/design/suncana/javascript/jquery.ui.widget.min.js
extension/community_design/design/suncana/javascript/jquery.easing.1.3.js
extension/community_design/design/suncana/javascript/jquery.ui.tabs.js
extension/community_design/design/suncana/javascript/jquery.hoverIntent.min.js
extension/community_design/design/suncana/javascript/jquery.popmenu.js
extension/community_design/design/suncana/javascript/jScrollPane.js
extension/community_design/design/suncana/javascript/jquery.mousewheel.js
extension/community_design/design/suncana/javascript/jquery.cycle.all.js
extension/sevenx/design/simple/javascript/jquery.scrollTo.js
extension/community_design/design/suncana/javascript/jquery.cookie.js
extension/community_design/design/suncana/javascript/ezstarrating_jquery.js
extension/community_design/design/suncana/javascript/jquery.initboxes.js
extension/community_design/design/suncana/javascript/app.js
extension/community_design/design/suncana/javascript/twitterwidget.js
extension/community_design/design/suncana/javascript/community.js
extension/community_design/design/suncana/javascript/roadmap.js
extension/community_design/design/suncana/javascript/ez.js
extension/community_design/design/suncana/javascript/ezshareevents.js
extension/sevenx/design/simple/javascript/main.js

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/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