Forums / Developer / Contributed documentation problem

Contributed documentation problem

Author Message

Paul Forsyth

Thursday 27 March 2003 5:48:57 am

Ive been trying to edit the article:

http://ez.no/developer/ez_publish_3/documentation/ez_publish_3/howtos/getting_the_latest_ezpublish_source

but am having problems with the xml text field. not sure if its something odd happening with my browser cache or theres perhaps a clash going on with the stylesheets used for the page or with the data field itself...

The first funny is the initial heading value for 'Install'. When i edit it is set to 1. This turns out to be a regular sized heading, which is blue. I change the value to 2, which is what the other headings are set, which are black, to but find after I post that the value has reverted back to 1... Looking at the source it seems a heading value of 1 is actually a h2 and 2 is h3.

Im not clear on how to get proper spaces working with the literal tag. The gap from the text above it seems to large. Is there a way to position better from within a xml data field?

Have a look and see what you can do with the article. Im a little stumped.

Paul

Jan Borsodi

Thursday 03 April 2003 3:02:01 am

The XML format is designed with content in mind, this means that there is no direct mapping between an XML header and an HTML header. Our default templates has this but on ez.no for instance the <h2> tag is used for header level 1.
If you wanted you could render level 1 as bold, level 2 as italic and level 3 with texttoimage.

This also means that you cannot skip levels, ie going from 1 to 3.

When writing documentation you should think about the structure of the document instead of it's appearance.

If you feel that the current setup of the tags leaves too much space then ofcourse we can adjust that.

--
Amos

Documentation: http://ez.no/ez_publish/documentation
FAQ: http://ez.no/ez_publish/documentation/faq

krish harry

Monday 26 May 2003 11:02:20 am

Why skipping one level is not possible? If we directly want to use <h3> in the heads why we have to use <h1> and <h2> also in the document? Or have i misunderstood?

Karsten Jennissen

Monday 26 May 2003 11:55:59 pm

I think that's XHTML standard. First use h1, then h2, then h3.

Paul Borgermans

Tuesday 27 May 2003 1:41:51 am

For this discussion, xhtml is just html xml-ized. What Jan means is that <header level=xx> is used to structure your text-writing, not formatting/layout.

Lots of people have difficulties to adapt to the idea of separation between content and presentation. Me too sometimes.

On the other hand, I think specifying a level=2 to start should be possible for certain situations like when having multiple articles forming a larger structure (book-like). That really makes sense to me. Any thoughts from the ez team on this?

Paul

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

krish harry

Saturday 14 June 2003 5:31:27 am

>The XML format is designed with content in mind, this means that there is
>no direct mapping between an XML header and an HTML header. Our
>default templates has this but on ez.no for instance the <h2> tag is used
>for header level 1.

How to map <h2> to header level 1 like you are doing above? I tried but did not find the required setting file.

Tx.
Krish

Paul Borgermans

Sunday 15 June 2003 1:11:43 am

You should look in

design/standard/templates/content/datatype/view/ezxmltags/header.tpl

Changes are best performed in your own design/<siteaccess>/override directory structure of course

--paul

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

eZ debug

Timing: Jan 18 2025 00:00:23
Script start
Timing: Jan 18 2025 00:00:23
Module start 'content'
Timing: Jan 18 2025 00:00:24
Module end 'content'
Timing: Jan 18 2025 00:00:24
Script end

Main resources:

Total runtime1.4828 sec
Peak memory usage4,096.0000 KB
Database Queries212

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0052 588.8516180.8281
Module start 'content' 0.00521.3261 769.6797697.0547
Module end 'content' 1.33130.1515 1,466.7344340.4297
Script end 1.4827  1,807.1641 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00450.3027210.0002
Check MTime0.00150.1037210.0001
Mysql Total
Database connection0.00080.055010.0008
Mysqli_queries1.392193.88292120.0066
Looping result0.00230.15322100.0000
Template Total1.447097.620.7235
Template load0.00230.155220.0012
Template processing1.444797.430720.7224
Template load and register function0.00020.010510.0002
states
state_id_array0.00140.093810.0014
state_identifier_array0.00190.127420.0009
Override
Cache load0.00200.1366420.0000
Sytem overhead
Fetch class attribute can translate value0.00170.111360.0003
Fetch class attribute name0.00120.081690.0001
XML
Image XML parsing0.00310.205860.0005
class_abstraction
Instantiating content class attribute0.00000.0018100.0000
General
dbfile0.01130.7588350.0003
String conversion0.00000.000430.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
7content/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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
4content/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: 24
 Number of unique templates used: 6

Time used to render debug report: 0.0002 secs