Forums / Developer / Unsupported tag

Unsupported tag

Author Message

Randeep Walia

Monday 30 August 2004 8:11:42 pm

When I try to create an article, sometimes I want to use custom style rules so I try put text in a <font> tag, to which, EZ Publish comes back with a 'Unsupported Tag <font>' reply.

Well- only trusted users will be creating these articles so is there some way to circumvent this security measure?

Randeep

__________________________________
Randeep Walia is http://www.rundeep.net powered by EZ Publish

Ole Morten Halvorsen

Tuesday 31 August 2004 1:04:03 am

If you do not want any restrictions use the text field instead of the XML field. If you are stuck with the XML field you can use the <literal> which allows you to put HTML inside.

Ole M.

Senior Software Engineer - Vision with Technology

http://www.visionwt.com
http://www.omh.cc
http://www.twitter.com/omh

eZ Certified Developer
http://ez.no/certification/verify/358441
http://ez.no/certification/verify/272578

Alex Jones

Tuesday 31 August 2004 6:21:12 am

Randeep, is there any reason you can't provide your trusted users with a different tag to use? You could create custom XML tags that make proper use of CSS which will help to avoid future problems. By putting font tags into your actual content, you will be forced to edit each and every article down the road as <i><font</i> is deprecated. By using HTML directly in a text field, some of the strength of eZ publish, or for that matter, any CMS is lost, as future redesigns will thus require changing or manipulating the content.

<b>Custom Tags:</b> http://ez.no/ez_publish/documentation/customization/components/datatypes/ezxmltext/custom_tags

Alex
[ bald_technologist on the IRC channel (irc.freenode.net): #eZpublish ]

<i>When in doubt, clear the cache.</i>

Paul Borgermans

Tuesday 31 August 2004 9:14:39 am

Be careful

The <literal> tag by default will make sure you see html code. In the standard design, it is mapped to

<pre>{$content|wash(xhtml)}</pre>

So you will have to modify this somewhat before you can input raw html.

At the same time I would add: don't use (x)html in any xml field, its a hack which breaks other features, pdf geneation and future outut conversions to name a few.

-paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Randeep Walia

Tuesday 31 August 2004 10:51:05 am

I was aware of the custom tags article at http://ez.no/ez_publish/documentation/customization/components/datatypes/ezxmltext/custom_tags
but I didn't want to use this method, mostly out of laziness, but also because the task for which I wanted to use the font or span or whatever is pretty trivial and would only occur once or twice in the whole website.

But what the heck... I'll give it a shot!

The directions say to make a change to the content.ini.php file to include [CustomTagSettings], is this true for eZPublish version 3.4.1 (which is what I am using)? I have a feeling I should make this change to content.ini.append.php- but in my 'plain' directory or in my 'plain_admin' directory?

__________________________________
Randeep Walia is http://www.rundeep.net powered by EZ Publish

Randeep Walia

Tuesday 31 August 2004 12:15:50 pm

Okay, so I have implemented my custom tag- I call it 'emailtext'.

Now there is a new problem, buecause I use the tag like so:

<custom name="emailtext">
<strong>From:</strong> Me
<strong>To:</strong> You
</custom>

but the admin interface comes back at me saying:
Tag 'strong' is not allowed to be the child of 'custom' (removed);

So how do I fix this? Thanks in advance to any help you can give, and I am also posting this question on the http://ez.no/ez_publish/documentation/customization/components/datatypes/ezxmltext/custom_tags page.

__________________________________
Randeep Walia is http://www.rundeep.net powered by EZ Publish

eZ debug

Timing: Jan 14 2025 21:17:03
Script start
Timing: Jan 14 2025 21:17:03
Module start 'content'
Timing: Jan 14 2025 21:17:04
Module end 'content'
Timing: Jan 14 2025 21:17:04
Script end

Main resources:

Total runtime0.9544 sec
Peak memory usage6,144.0000 KB
Database Queries200

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0055 683.9609214.8125
Module start 'content' 0.00550.8248 898.77341,939.4922
Module end 'content' 0.83030.1240 2,838.2656639.5078
Script end 0.9543  3,477.7734 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00740.7755210.0004
Check MTime0.00150.1548210.0001
Mysql Total
Database connection0.00060.067410.0006
Mysqli_queries0.838887.88642000.0042
Looping result0.00190.20321970.0000
Template Total0.927197.120.4636
Template load0.00450.474620.0023
Template processing0.922696.665220.4613
Template load and register function0.00110.118410.0011
states
state_id_array0.00080.085210.0008
state_identifier_array0.00080.080020.0004
Override
Cache load0.00420.4380360.0001
Sytem overhead
Fetch class attribute can translate value0.00160.167850.0003
Fetch class attribute name0.00220.230790.0002
XML
Image XML parsing0.00170.178250.0003
class_abstraction
Instantiating content class attribute0.00000.0019110.0000
General
dbfile0.00100.1034340.0000
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
6content/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
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
2content/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: 25
 Number of unique templates used: 7

Time used to render debug report: 0.0001 secs