Class for documentation which contains source code

Author Message

Nicolas Heiringhoff

Monday 20 September 2004 2:46:02 am

Hi everybody,

we are building a documentation of eZ publish code-examples to make our daily live with eZ publish easier. After our site will be online, these code exmaples will be available for other eZ Publish users. Unfortunately the documentation will be in German only. We have the problem, that the included code will be executed, if we use an xmltextfield. In this eZ Publish forum exists very pleasent possibility to use this tags:
tag code
$var = phpcode();
tag /code
tag b Bold text tag /b
tag i Italic text tag /i
http://ez.no <- links will automatically be made clickable

The Question: How can we use this tags and which class or datatypes provide this functionality?

Nico

http://www.heiringhoff.de

Ekkehard Dörre

Monday 20 September 2004 3:17:11 am

No answer but:

We made a german Docu for editors:
ezpublish_in_8_schritten_v1ezpsxw.zip OpenOffice version
ezpublish_in_8_schritten_v1ezp.zip PDF Version
~74 Pages, 5MB, ~110 Screenshot

http://sourceforge.net/project/showfiles.php?group_id=58646&package_id=122071

Einstieg in eZPublish in 8 Schritten 1 (First eight Steps in eZPublish)
Schritt 1: Anmelden 2 (Login)
Schritt 2: Navigieren 2 (Navigate)
Schritt 3: Elemente anlegen/löschen 3 (New Element/ Delete Element)
3.1 Einen "Article" anlegen 3 (New Article)
3.2 Eine "Info page" anlegen 9 (New Info Page)
3.3 Seiten löschen 12 (Delete Page)
3.4 Navigationspunkte anlegen 16 (New Navigation Link)
Schritt 4: Elemente bearbeiten 19 (Edit Element)
4.1 Ordner editieren 19 (Edit Folder)
4.2 Textseiten editieren 20 (Edit Textpage)
4.3 Text formatieren 27 (Format Text)
4.4 Links einfügen 30 (New Link)
4.5 Liste einfügen 33 (New List)
Schritt 5: Rückblick und Vorschau 42 (Look back and Preview)
5.1 Versionen verwalten 42 (Manage Versions)
5.2 Vorschau 45 (Preview)
Schritt 6: Termine eingeben/verwalten 51 (New Event / Manage Events)
Schritt 7: Bilder verwalten: Der Bereich "Medien" 58 (Manange Images: Media Section)
7.1 Upload von Medien 58 (Upload Media)
7.2 Medien mit Texten verknüpfen 61 (Link Media with Texts)
Schritt 8: eZPublish für Fortgeschrittene 75 (eZPublish for advanced Users)

Feel free to use it and make new topics:
Usermanagement for editors,
Kollaboration for editors,

Greetings, ekke

http://www.coolscreen.de - Over 40 years of certified eZ Publish know-how: http://www.cjw-network.com
CJW Newsletter: http://projects.ez.no/cjw_newsletter - http://cjw-network.com/en/ez-publ...w-newsletter-multi-channel-marketing

Bård Farstad

Monday 20 September 2004 3:48:51 am

For the forums here on ez.no we use attributes of the type text field, without formatting. To format some simple tags like you describe we use the operators as shown below.

{$node.object.data_map.message.content|simpletags|wordtoimage|autolink}

If you want to format text you can also use the XML text datatype, which is also much more powerful. And if you are inputting content like documentation and articles you should use this datatype.
--bård

Documentation: http://ez.no/doc

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 19 2025 01:20:24
Script start
Timing: Jan 19 2025 01:20:24
Module start 'layout'
Timing: Jan 19 2025 01:20:24
Module start 'content'
Timing: Jan 19 2025 01:20:25
Module end 'content'
Timing: Jan 19 2025 01:20:25
Script end

Main resources:

Total runtime0.9957 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0073 590.8125152.6406
Module start 'layout' 0.00740.0059 743.453139.4766
Module start 'content' 0.01330.9806 782.9297598.5469
Module end 'content' 0.99390.0018 1,381.476612.1250
Script end 0.9956  1,393.6016 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00320.3244160.0002
Check MTime0.00130.1334160.0001
Mysql Total
Database connection0.00090.094510.0009
Mysqli_queries0.928993.2915590.0157
Looping result0.00070.0663570.0000
Template Total0.951995.620.4759
Template load0.00200.203520.0010
Template processing0.949895.395620.4749
Template load and register function0.00030.026910.0003
states
state_id_array0.00100.098110.0010
state_identifier_array0.00290.294820.0015
Override
Cache load0.00180.1765540.0000
Sytem overhead
Fetch class attribute can translate value0.00110.113430.0004
Fetch class attribute name0.00160.158960.0003
XML
Image XML parsing0.00430.435630.0014
class_abstraction
Instantiating content class attribute0.00000.001060.0000
General
dbfile0.00390.3875290.0001
String conversion0.00000.001240.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
3content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/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
5content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 22
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs