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 19 2025 12:41:08
Script start
Timing: Jan 19 2025 12:41:08
Module start 'content'
Timing: Jan 19 2025 12:41:09
Module end 'content'
Timing: Jan 19 2025 12:41:09
Script end

Main resources:

Total runtime0.7939 sec
Peak memory usage4,096.0000 KB
Database Queries207

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 588.8281180.8516
Module start 'content' 0.00570.6719 769.6797662.8359
Module end 'content' 0.67760.1163 1,432.5156341.0781
Script end 0.7938  1,773.5938 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4788210.0002
Check MTime0.00140.1806210.0001
Mysql Total
Database connection0.00070.089310.0007
Mysqli_queries0.716090.18832070.0035
Looping result0.00210.26372050.0000
Template Total0.768896.820.3844
Template load0.00190.234420.0009
Template processing0.766996.602720.3835
Template load and register function0.00010.013710.0001
states
state_id_array0.00060.079010.0006
state_identifier_array0.00060.081520.0003
Override
Cache load0.00160.2057360.0000
Sytem overhead
Fetch class attribute can translate value0.00110.137950.0002
Fetch class attribute name0.00100.123090.0001
XML
Image XML parsing0.00190.243350.0004
class_abstraction
Instantiating content class attribute0.00000.0027110.0000
General
dbfile0.00360.4537400.0001
String conversion0.00000.000930.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