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

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 29 2025 23:51:03
Script start
Timing: Jan 29 2025 23:51:03
Module start 'layout'
Timing: Jan 29 2025 23:51:03
Module start 'content'
Timing: Jan 29 2025 23:51:03
Module end 'content'
Timing: Jan 29 2025 23:51:03
Script end

Main resources:

Total runtime0.0158 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.0078151.1953
Module start 'layout' 0.00520.0031 739.203136.6172
Module start 'content' 0.00830.0060 775.820394.1094
Module end 'content' 0.01430.0015 869.929737.9922
Script end 0.0158  907.9219 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002414.9731140.0002
Check MTime0.00116.6923140.0001
Mysql Total
Database connection0.00074.127610.0007
Mysqli_queries0.003018.669130.0010
Looping result0.00000.164010.0000
Template Total0.00117.010.0011
Template load0.00095.595810.0009
Template processing0.00021.362810.0002
Override
Cache load0.00063.841810.0006
General
dbfile0.00159.652780.0002
String conversion0.00000.055740.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs