Forums / Setup & design / OE - show/hide tools depend on site access

OE - show/hide tools depend on site access

Author Message

laurent le cadet

Wednesday 12 September 2007 1:25:37 am

Hi,

I want to let users use the online editor in frontoffice but I want to hide some tools.
I just want to show them the basic tools for text formatting but not not the advanced options as inserting objects,links,table...

As this toolbar is based on javascript I don't know exactly where I can achieve this.

My main idea is to deal with siteaccess...

Any hint?

Regards.

Laurent

Damien Pobel

Wednesday 12 September 2007 2:43:07 am

Hi Laurent,

I think it's not possible without hacking Online Editor :( and that's not easy...
In FCKEditor, you can choose toolbar config, it would be great to have something similar in Online Editor...

Damien
Planet eZ Publish.fr : http://www.planet-ezpublish.fr
Certification : http://auth.ez.no/certification/verify/372448
Publications about eZ Publish : http://pwet.fr/tags/keywords/weblog/ez_publish

laurent le cadet

Wednesday 12 September 2007 2:49:57 am

Damien,

Sure, hack is never a good option and I don't want neither use FCKeditor.
I'm going to look for simple CSS issue with a display:none; warpped around tools (humm through javascript ???).

Other staring point will be welcome.

Laurent

Tony Wood

Wednesday 12 September 2007 8:58:13 am

Customising the OE based on the user profile. Wow!! I would love that... Good idea.

Tony Wood : twitter.com/tonywood
Vision with Technology
Experts in eZ Publish consulting & development

Power to the Editor!

Free eZ Training : http://www.VisionWT.com/training
eZ Future Podcast : http://www.VisionWT.com/eZ-Future

laurent le cadet

Wednesday 12 September 2007 9:04:10 am

Me too ;)

eZ debug

Timing: Jan 18 2025 15:08:19
Script start
Timing: Jan 18 2025 15:08:19
Module start 'content'
Timing: Jan 18 2025 15:08:20
Module end 'content'
Timing: Jan 18 2025 15:08:20
Script end

Main resources:

Total runtime0.8968 sec
Peak memory usage4,096.0000 KB
Database Queries202

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0051 588.9766180.8125
Module start 'content' 0.00510.7739 769.7891615.4063
Module end 'content' 0.77900.1177 1,385.1953337.3672
Script end 0.8967  1,722.5625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4060210.0002
Check MTime0.00140.1519210.0001
Mysql Total
Database connection0.00060.067210.0006
Mysqli_queries0.828792.40972020.0041
Looping result0.00180.19632000.0000
Template Total0.870897.120.4354
Template load0.00190.207520.0009
Template processing0.869096.898720.4345
Template load and register function0.00010.012110.0001
states
state_id_array0.00060.072010.0006
state_identifier_array0.00090.098920.0004
Override
Cache load0.00160.1759300.0001
Sytem overhead
Fetch class attribute can translate value0.00130.149940.0003
Fetch class attribute name0.00080.088980.0001
XML
Image XML parsing0.00160.183240.0004
class_abstraction
Instantiating content class attribute0.00000.0016100.0000
General
dbfile0.00300.3302390.0001
String conversion0.00000.000630.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
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
5content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
5content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
8content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 23
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs