Rendering custom tables using online editor

Author Message

Anrik Drenth

Wednesday 04 November 2009 2:34:37 pm

Hi all,

When I create a new article and I enter text (without the spaces) m& # 0 2 5 7 ;na

Save/Publish the article.

Then open/edit the article; it now nicely displays māna.

So the online editor/ezpublish has nicely converted the code I entered into something the standard users on our system can use and understand.

Which got me thinking; is this also possible for a table/html code ?

There has been a few times now where I have wanted to use a custom table within an article. It would be great if I could somehow put that into the article, save it, but when the standard user opens the article all they see is the table and they only alter it using the defined css options.

Would appreciate any hints or thoughts.

Thanks

Anrik Drenth

Wednesday 30 June 2010 7:27:54 pm

Two solutions

Add a table to the article, click on the "Disable editor" button.

Now hard code the table, click on the "Enable editor" button.

Or

Embedding HTML inside the WYSIWYG XML Editor

vi settings/override/content.ini.append.php

Add to the bottom of the file

[literal]
AvailableClasses[]=html

When creating or editing an article click on the literal icon "insert literal text"

Select the new "html" class, OK

Add HTML into the literal area

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 10:27:55
Script start
Timing: Jan 18 2025 10:27:55
Module start 'layout'
Timing: Jan 18 2025 10:27:55
Module start 'content'
Timing: Jan 18 2025 10:27:55
Module end 'content'
Timing: Jan 18 2025 10:27:55
Script end

Main resources:

Total runtime0.7414 sec
Peak memory usage4,096.0000 KB
Database Queries52

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0059 588.0469152.6406
Module start 'layout' 0.00590.0035 740.687539.4766
Module start 'content' 0.00940.7299 780.1641429.2109
Module end 'content' 0.73930.0020 1,209.37508.1250
Script end 0.7414  1,217.5000 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00340.4582160.0002
Check MTime0.00130.1700160.0001
Mysql Total
Database connection0.00090.120310.0009
Mysqli_queries0.692693.4167520.0133
Looping result0.00050.0713500.0000
Template Total0.709495.720.3547
Template load0.00170.234420.0009
Template processing0.707795.450520.3538
Template load and register function0.00020.029910.0002
states
state_id_array0.00130.181710.0013
state_identifier_array0.00090.117920.0004
Override
Cache load0.00140.1901300.0000
Sytem overhead
Fetch class attribute can translate value0.00060.074610.0006
Fetch class attribute name0.00340.462720.0017
XML
Image XML parsing0.00010.014110.0001
class_abstraction
Instantiating content class attribute0.00000.001520.0000
General
dbfile0.00080.1038100.0001
String conversion0.00000.001640.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
2content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
6content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
3content/datatype/view/ezxmltags/strong.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/strong.tplEdit templateOverride template
2content/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: 15
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs