ezoe attribute allowed input tag control

Author Message

James

Thursday 21 October 2010 4:45:21 am

How can I in user ezoe comments, disallow any tags other than the simplest ones needed, (p, b, i, u, a, br, basically).

Suggestions welcome. I need this for only one user siteaccess. I would still like to be able to use the full tags in the admin siteacess.

Cheers

André R.

Thursday 21 October 2010 4:54:58 am

You can have different ezoe.ini settings pr siteaccess to hide buttons in frontend, but be aware of the fact that:
1. there is not filtering so if user disabled editor he can type in any kind of tag as you would be able to in admin

2. if you edit content created in admin with tags not 'available' in frontend, you'll still be able to edit thos by selecting them and clicking on tag name in path

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

James

Thursday 21 October 2010 5:17:58 am

Hello Andre, thank you for your prompt reply.

What about ezxml.ini? I found this and read these classes extension/ezoe/ezxmltext/handlers/input/ezoexmlinput.php and kernel/classes/datatypes/ezxmltext/handlers/input/ezsimplifiedxmlinputparser.php

<?php /* #?ini charset="utf-8"?
# eZ Publish configuration file for ezxml

[InputSettings]
AliasClasses[eZSimplifiedXMLInput]=eZOEXMLInput

*/ ?>

Could it be possible to some how override the class with a different class that had more strict input tags set?

Respectfully

André R.

Thursday 21 October 2010 7:47:11 am

Maybe, never tried.

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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 02:19:21
Script start
Timing: Jan 18 2025 02:19:21
Module start 'layout'
Timing: Jan 18 2025 02:19:21
Module start 'content'
Timing: Jan 18 2025 02:19:22
Module end 'content'
Timing: Jan 18 2025 02:19:22
Script end

Main resources:

Total runtime0.7559 sec
Peak memory usage4,096.0000 KB
Database Queries60

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 589.1641152.6406
Module start 'layout' 0.00700.0044 741.804739.4844
Module start 'content' 0.01140.7433 781.2891556.2266
Module end 'content' 0.75470.0012 1,337.515612.1250
Script end 0.7559  1,349.6406 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00360.4743160.0002
Check MTime0.00160.2109160.0001
Mysql Total
Database connection0.00110.149610.0011
Mysqli_queries0.697192.2219600.0116
Looping result0.00050.0690580.0000
Template Total0.718595.020.3592
Template load0.00210.272420.0010
Template processing0.716494.773020.3582
Template load and register function0.00010.016910.0001
states
state_id_array0.00120.160610.0012
state_identifier_array0.00190.257120.0010
Override
Cache load0.00170.2248250.0001
Sytem overhead
Fetch class attribute can translate value0.00110.148220.0006
Fetch class attribute name0.00090.123660.0002
XML
Image XML parsing0.00250.328120.0012
class_abstraction
Instantiating content class attribute0.00000.002180.0000
General
dbfile0.00310.4073230.0001
String conversion0.00000.001640.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
4content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/emphasize.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/emphasize.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 19
 Number of unique templates used: 8

Time used to render debug report: 0.0001 secs