Forums / Developer / Adding match condition to override.ini

Adding match condition to override.ini

Author Message

Arnaud Georgin

Friday 30 November 2007 2:37:55 am

Hello,

Is it possible to add new match condition (ie : Match[module]) for the override.ini file and how can I do this ?

Thank for your help,

blog : http://arnaudgeorgin.blogcity.fr/

Paul Leclercq

Friday 30 November 2007 8:31:56 am

Hello,

What do you mean by match['module']?

Is it a specific module/view extension or is it for overriding a node number of nodes?

If you are in an extension, you don't need to use the override.ini file since you will specify the template you wish to use in you view script by using the following line.
$Result['content'] =& $tpl->fetch( 'design:eurofxref/overview.tpl' );

This is explained in the following page:
http://ez.no/ezpublish/documentation/development/extensions/building_an_ez_publish_module

If you are trying to override a node then you can use any of the conditions which are specified in the override.ini documentation:
http://ez.no/doc/ez_publish/technical_manual/3_10/reference/template_override_conditions

You can maybe play with the match['parent'] or match['section'] or match['url_alias'] insted.

If this doesn't work, you can maybe try the urltranslator feature which is in the administrative interface:
->administration -> urltranslator

Check this out as well: it explains the url system:
http://ez.no/doc/ez_publish/technical_manual/3_6/concepts_and_basics/url_translation

Arnaud Georgin

Monday 03 December 2007 3:10:08 am

Hello,

In fact my problem is the following :
I want to use several pagelayouts in the shop module.

For example I want a specific pagelayout to display the basket content and an other pagelayout to display the products list.

In these cases I'm not into a subtree and not into a section.

So I don't know how to define what pagelayout I want.

I didn't found any solution.

I thought that it would be very useful to extend the matching system provided by the override.ini file with our own conditions

blog : http://arnaudgeorgin.blogcity.fr/