Forums / Setup & design / Operators in pagelayout

Operators in pagelayout

Author Message

Felix Laate

Friday 19 May 2006 2:41:01 am

Hi all!

On a 3.8 system, I'm trying to make som logic with $module_result.uri in pagelayout. I've tried to use all kinds of operators (eq, compare, begins_with..), but I can't get it to work.

Sample code:

{if eq($module_result.uri,'/content/advancedsearch')}
  do something..
{else}
  do something else..
{/if}

Any ideas anyone?

Felix

Publlic Relations Manager
Greater Stavanger
www.greaterstavanger.com

Ɓukasz Serwatka

Friday 19 May 2006 2:59:08 am

Hi Felix

Hmm

{if eq($module_result.uri,'/content/advancedsearch')}
 do something..
{else}
 do something else..
{/if}

Works fine here

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Marcin Drozd

Friday 19 May 2006 3:55:47 am

Hi
try {eq($module_result.uri,'/content/advancedsearch')} with MatchOrder=host
or {eq($module_result.uri,'/SITEACCESS/content/advancedsearch')} with MatchOrder=uri
settings in site.ini

http://ez-publish.pl