Modifying system defined content classes

Author Message

Kedar Deshpande

Monday 20 July 2009 1:19:14 pm

Hi,

I wanted to ask what the correct procedure was to add attributes to a pre-existing content class like blog_post. I can see that it allows me to add attributes but was wondering if this was ok and if these updates would work with an upgrade to ezpublish.

thanks,
Kedar

Jean-Luc Nguyen

Tuesday 21 July 2009 12:51:31 am

Hello,

your blog_post class is there as an example, it is not changed when you ugrade eZ Publish.

http://www.acidre.com

Gaetano Giunta

Tuesday 21 July 2009 1:41:41 am

One way to alter system-provided content classes is to create copies of all the ones you want to modify, renaming them to myapp_folder, myapp_blogpost, myapp_forntpage etc...
It is a bit of extra work, but it makes it easier to later export those classes via the packaging system and import them into other installations, where the standard content classes do not expect to be modified...

Principal Consultant International Business
Member of the Community Project Board

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 16:19:28
Script start
Timing: Jan 18 2025 16:19:28
Module start 'layout'
Timing: Jan 18 2025 16:19:28
Module start 'content'
Timing: Jan 18 2025 16:19:29
Module end 'content'
Timing: Jan 18 2025 16:19:29
Script end

Main resources:

Total runtime0.8376 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.0095 589.1641152.6406
Module start 'layout' 0.00950.0026 741.804739.4766
Module start 'content' 0.01220.8240 781.2813573.1563
Module end 'content' 0.83610.0014 1,354.437512.1250
Script end 0.8376  1,366.5625 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00400.4742160.0002
Check MTime0.00140.1669160.0001
Mysql Total
Database connection0.00160.185410.0016
Mysqli_queries0.788294.1036590.0134
Looping result0.00050.0632570.0000
Template Total0.805296.120.4026
Template load0.00230.275820.0012
Template processing0.802995.858720.4015
Template load and register function0.00010.015110.0001
states
state_id_array0.00210.247110.0021
state_identifier_array0.00100.121720.0005
Override
Cache load0.00190.2238150.0001
Sytem overhead
Fetch class attribute can translate value0.00060.069530.0002
Fetch class attribute name0.00100.114450.0002
XML
Image XML parsing0.00110.131630.0004
class_abstraction
Instantiating content class attribute0.00000.001250.0000
General
dbfile0.00090.1069220.0000
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
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
4content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 13
 Number of unique templates used: 6

Time used to render debug report: 0.0001 secs