Custom Datatype and ez philosophy ...

Author Message

Christophe Saint-Pierre

Tuesday 21 October 2008 1:02:13 am

Hi,
We have to migrate a site to ezpublish.
For the dynamic content with structured format , no problems , the scripts work fine.
But the site have a lot of static pages.
We imagine create a class "Static page" with a field "Title" and a field "Body" and a program
will parse all the sites and create the nodes in ezpublish.
The fields Body must be editable easily (WYGIWYS) so we wanted to used the datatype XmlBlock with ezoe extension.
But a lot of html balise are lost in the process (no suprising).
I know we could add custom tags but the custom tags are in blue in the interface ..
So we thought that we could create a datatype like Text block (wich no delete unknown html tag)
with tinymce.
I know it's against the ez philosophy to mix content and design...
Would it be so bad ?
Are another solutions existing wich would be better with ez philosophy ?

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

Main resources:

Total runtime0.8261 sec
Peak memory usage4,096.0000 KB
Database Queries46

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0091 587.9219152.6250
Module start 'layout' 0.00910.0026 740.546939.4609
Module start 'content' 0.01170.8128 780.0078402.1328
Module end 'content' 0.82450.0015 1,182.14068.1563
Script end 0.8260  1,190.2969 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.4192160.0002
Check MTime0.00140.1649160.0001
Mysql Total
Database connection0.00390.473610.0039
Mysqli_queries0.782694.7441460.0170
Looping result0.00050.0566440.0000
Template Total0.786195.220.3931
Template load0.00220.265420.0011
Template processing0.783994.900120.3920
Template load and register function0.00020.030210.0002
states
state_id_array0.00090.112610.0009
state_identifier_array0.00160.190220.0008
Override
Cache load0.00180.2144170.0001
Sytem overhead
Fetch class attribute can translate value0.00060.071510.0006
Fetch class attribute name0.00070.085710.0007
XML
Image XML parsing0.00010.012410.0001
class_abstraction
Instantiating content class attribute0.00000.000510.0000
General
dbfile0.00080.0929100.0001
String conversion0.00000.000940.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
1content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 5
 Number of unique templates used: 5

Time used to render debug report: 0.0001 secs