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

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 18 2025 02:49:50
Script start
Timing: Jan 18 2025 02:49:50
Module start 'layout'
Timing: Jan 18 2025 02:49:50
Module start 'content'
Timing: Jan 18 2025 02:49:51
Module end 'content'
Timing: Jan 18 2025 02:49:51
Script end

Main resources:

Total runtime0.6381 sec
Peak memory usage4,096.0000 KB
Database Queries75

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0057 589.0391152.6250
Module start 'layout' 0.00570.0023 741.664139.4609
Module start 'content' 0.00800.6286 781.1250691.9766
Module end 'content' 0.63660.0015 1,473.101616.1563
Script end 0.6380  1,489.2578 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00330.5096160.0002
Check MTime0.00130.2108160.0001
Mysql Total
Database connection0.00090.148710.0009
Mysqli_queries0.578490.6441750.0077
Looping result0.00060.1017730.0000
Template Total0.609895.620.3049
Template load0.00200.313820.0010
Template processing0.607895.259120.3039
Template load and register function0.00020.035410.0002
states
state_id_array0.00090.137710.0009
state_identifier_array0.00150.230220.0007
Override
Cache load0.00170.2667420.0000
Sytem overhead
Fetch class attribute can translate value0.00070.102650.0001
Fetch class attribute name0.00110.176690.0001
XML
Image XML parsing0.00140.217450.0003
class_abstraction
Instantiating content class attribute0.00000.0031100.0000
General
dbfile0.00090.1338240.0000
String conversion0.00000.001140.0000
Note: percentages do not add up to 100% because some accumulators overlap

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
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_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