Forums / Setup & design / How to add new content classes and override ezwebin?

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