How to add new content classes and override ezwebin?

Author Message

Mariusz Scisel

Friday 08 August 2008 3:20:26 am

Hi everybody:)

I have a site with ezwebin extension overrided by ezwebin_my my own custom extension.
I added a new content class and templates called post_rss (it is based on blog_post).

The question is where should I add override code for this class.

[full_rss_post]
Source=node/view/full.tpl
MatchFile=full/rss_post.tpl
Subdir=templates
Match[class_identifier]=rss_post

[line_rss_post]
Source=node/view/line.tpl
MatchFile=line/rss_post.tpl
Subdir=templates
Match[class_identifier]=rss_post

Actually it works fine in settings/siteaccess/ezwebin_site/override.ini.append.php

Is it possible to move this to the extension folder?

like: extension/ezwebin_my/settings/override.ini.append.php

In this place rss_post templates works on the site but doesn't work in Admin Panel.

Is It any way to separate override ini settings for new classes from /setting folder and move it to another place like extension ?

Thanks a lot.
Mariusz.

André R.

Monday 11 August 2008 11:27:28 pm

If you want it to work in admin as well move it to settings/override or some extension that are enabled in all siteaccesses (+ the templates must be stored in a design that are used in all siteaccesses to, for instance standard, so ezwebin_my/design/standard/...)

eZ Online Editor 5: http://projects.ez.no/ezoe || eZJSCore (Ajax): http://projects.ez.no/ezjscore || eZ Publish EE http://ez.no/eZPublish/eZ-Publish-Enterprise-Subscription
@: http://twitter.com/andrerom

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:25:35
Script start
Timing: Jan 18 2025 16:25:35
Module start 'layout'
Timing: Jan 18 2025 16:25:35
Module start 'content'
Timing: Jan 18 2025 16:25:36
Module end 'content'
Timing: Jan 18 2025 16:25:36
Script end

Main resources:

Total runtime0.9218 sec
Peak memory usage4,096.0000 KB
Database Queries54

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0066 588.1563152.6563
Module start 'layout' 0.00660.0022 740.812539.4922
Module start 'content' 0.00880.9116 780.3047527.5234
Module end 'content' 0.92040.0014 1,307.82818.1250
Script end 0.9218  1,315.9531 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00380.4123160.0002
Check MTime0.00160.1766160.0001
Mysql Total
Database connection0.00200.215710.0020
Mysqli_queries0.875094.9163540.0162
Looping result0.00050.0498520.0000
Template Total0.889296.520.4446
Template load0.00250.270420.0012
Template processing0.886796.189120.4434
Template load and register function0.00020.024310.0002
states
state_id_array0.00200.217010.0020
state_identifier_array0.00140.155020.0007
Override
Cache load0.00210.2285180.0001
Sytem overhead
Fetch class attribute can translate value0.00060.068620.0003
Fetch class attribute name0.00110.120830.0004
XML
Image XML parsing0.00060.065420.0003
class_abstraction
Instantiating content class attribute0.00000.000930.0000
General
dbfile0.00080.0839170.0000
String conversion0.00000.000840.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
5content/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
1content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/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: 7

Time used to render debug report: 0.0001 secs