Forums / Developer / Aricles in html

Aricles in html

Author Message

Cecilia Contin

Wednesday 26 March 2003 6:00:39 am

Today, I installed the new version of EZP 3.
I updated the database with the script, but I can not see well my articles written in HTML. My article body is a text field datatype.
What can I do? Please, help me.

Paul Forsyth

Wednesday 26 March 2003 7:01:35 am

I had a similar problem when i was using the various svn releases over the rc2 release. I found that with rc2 text fields allowed me to enter html as i wished. But later on I found that the html was instead quoted inline and not rendered by the browser. The reason I took this route was because xml text field didn't allow me to enter complex html.

However, it looks like for this release you can use the tags <literal></literal>, within a xml data field data type to enclose whatever html you wish to enter.

Does this help? You may need to go into your admin and move html and types around.....

Paul

Paul Borgermans

Wednesday 26 March 2003 8:01:16 am

No, the <literal> tag is not meant for this. It is essentially the equivalent of <pre> in xhtml

You may define a custom tag, say html which does what you want. I just extended my local ezp 3.0 with this.

Wanna now more?

1) First edit settings/content.ini and add the custom html tag:
#Under
[CustomTagSettings]
#make a new entry:
AvailableCustomTags[]=html

2) Make a new template html.tpl in
design/standard/templates/content/view/datatypes/ezxmltags

with the content

{$content}

3) surround your html code by

<custom name="html">
your html code
</custom>

4) Voila, you'v dunit
-----------------------
Much much better:

replace the missing html tags with individual custom tags, rather than block wise if appropriate.

Paul

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

Paul Borgermans

Wednesday 26 March 2003 9:08:25 am

Sorry, too fast.

Need to change more: custom tag allows nesting apparently and converts xhtml to ez xml where it can or simply strips the un-supported xhtml tags.

So the code for the input handler needs to be extended for such a html tag to behave for the rest like the literal tag (without generating <pre></pre>)

I'll post the mods when done

Paul

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

Paul Borgermans

Wednesday 02 April 2003 7:09:38 am

Hello,

I uploaded code to allow arbitraty html inside ez xml text fields. This violates the idea of separation between content and presentation, but may be useful in some cases.

See http://ez.no/developer/ez_publish_3/contributions/arbitrary_html_inside_ez_xml_text_fields

This is a first attempt. Feel free to modify it further and post back your comments

Paul

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

eZ debug

Timing: Jan 17 2025 23:40:44
Script start
Timing: Jan 17 2025 23:40:44
Module start 'content'
Timing: Jan 17 2025 23:40:45
Module end 'content'
Timing: Jan 17 2025 23:40:45
Script end

Main resources:

Total runtime0.8905 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.0082 587.5859180.8516
Module start 'content' 0.00820.7678 768.4375601.6406
Module end 'content' 0.77600.1144 1,370.0781337.3906
Script end 0.8904  1,707.4688 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00420.4664210.0002
Check MTime0.00160.1786210.0001
Mysql Total
Database connection0.00090.101710.0009
Mysqli_queries0.816091.63192020.0040
Looping result0.00180.20552000.0000
Template Total0.859896.620.4299
Template load0.00240.271320.0012
Template processing0.857496.284720.4287
Template load and register function0.00010.016710.0001
states
state_id_array0.00270.302210.0027
state_identifier_array0.00120.135020.0006
Override
Cache load0.00210.2385480.0000
Sytem overhead
Fetch class attribute can translate value0.00180.206440.0005
Fetch class attribute name0.00130.147560.0002
XML
Image XML parsing0.00110.119740.0003
class_abstraction
Instantiating content class attribute0.00000.002580.0000
General
dbfile0.00240.2650280.0001
String conversion0.00000.000830.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/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
9content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1pagelayout.tpl<No override>extension/sevenx/design/simple/templates/pagelayout.tplEdit templateOverride template
 Number of times templates used: 24
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs