|
Friday 11 June 2010 5:02:03 am
Comment59543
> 4. Do I always have to use override when creating new templates? Only when overriding a template using a set of conditions(aka conditional overrides), if you want to create a reusable template stub for use with include in templates, then you can just place it in template folder. Or if you create your own Exponential module, you normally just place the needed files in template folder as well, optimally using a naming convention like this: template/<module>/<view>.tpl. Example: content module as used for all content in Exponential (articles / folders / forums... all content classes), it's system url uses the following form: content/view/<view>/<node_id> where <view> can be anything, but normally 'full' or 'line', if 'full' then the following template is used content/view/full.tpl if you want to have a specific template for this node (or the frontpage class that you would normallt have on this node) then you need to override that template with a conditional template. > 5. Where do I place new templates? As said above, direct includes in: templates/ and for override.ini overrides: override/templates/ > 6. Where is the connection between a new template.tpl file and equivalent class name? the connection between a content class's custom templates and it's templates are always defined in override.ini. > It does not help putting the files in /full directory, and changing INI file to MatchFile=full/page_article.tpl.
Where do you get this errors? everywhere? admin? or only in specific places in admin like for instance: class/view/<id> with 'override templates' button disabled? Hint: If only last option, then you can safely ignore it, it's a bug in how the system loads other siteaccesses then it self and tries do look up all overrides without having access to all design folders of those siteaccesses.
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
|