This site has been archived and you can no longer log in or post new messages. For up-to-date community resources please visit ezplatform.com

eZ Community » Forums » Developer » Adding match condition to override.ini
expandshrink

Adding match condition to override.ini

Adding match condition to override.ini

Friday 30 November 2007 11:37:55 am - 2 replies

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,

Modified on Friday 30 November 2007 11:40:04 am by Arnaud Georgin

Friday 30 November 2007 5:31:56 pm

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/documentat...nsions/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/techn...ference/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/techn.../concepts_and_basics/url_translation

Monday 03 December 2007 12:10:08 pm

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

Modified on Monday 03 December 2007 12:11:01 pm by Arnaud Georgin

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from