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

Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2014 eZ Systems AS (except where otherwise noted). All rights reserved.

eZ debug

Timing: Jan 19 2025 00:12:15
Script start
Timing: Jan 19 2025 00:12:15
Module start 'layout'
Timing: Jan 19 2025 00:12:15
Module start 'content'
Timing: Jan 19 2025 00:12:17
Module end 'content'
Timing: Jan 19 2025 00:12:17
Script end

Main resources:

Total runtime1.7213 sec
Peak memory usage4,096.0000 KB
Database Queries59

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0070 587.9063152.6250
Module start 'layout' 0.00700.0045 740.531339.4453
Module start 'content' 0.01151.7083 779.9766575.7500
Module end 'content' 1.71980.0015 1,355.726612.1719
Script end 1.7212  1,367.8984 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.00350.2037160.0002
Check MTime0.00140.0791160.0001
Mysql Total
Database connection0.00170.098410.0017
Mysqli_queries1.667796.8900590.0283
Looping result0.00070.0385570.0000
Template Total1.677297.420.8386
Template load0.00270.157820.0014
Template processing1.674497.280420.8372
Template load and register function0.00010.005210.0001
states
state_id_array0.00240.136610.0024
state_identifier_array0.00090.050720.0004
Override
Cache load0.00200.1155210.0001
Sytem overhead
Fetch class attribute can translate value0.00090.049530.0003
Fetch class attribute name0.00130.077850.0003
XML
Image XML parsing0.00120.071930.0004
class_abstraction
Instantiating content class attribute0.00000.000550.0000
General
dbfile0.00100.0563240.0000
String conversion0.00000.000540.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1node/view/full.tplfull/forum_topic.tplextension/sevenx/design/simple/override/templates/full/forum_topic.tplEdit templateOverride template
2content/datatype/view/ezimage.tpl<No override>extension/sevenx/design/simple/templates/content/datatype/view/ezimage.tplEdit templateOverride template
3content/datatype/view/ezxmltext.tpl<No override>extension/community_design/design/suncana/templates/content/datatype/view/ezxmltext.tplEdit templateOverride template
5content/datatype/view/ezxmltags/paragraph.tpl<No override>extension/ezwebin/design/ezwebin/templates/content/datatype/view/ezxmltags/paragraph.tplEdit templateOverride template
2content/datatype/view/ezxmltags/literal.tpl<No override>extension/community/design/standard/templates/content/datatype/view/ezxmltags/literal.tplEdit templateOverride template
1content/datatype/view/ezxmltags/line.tpl<No override>design/standard/templates/content/datatype/view/ezxmltags/line.tplEdit templateOverride template
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 15
 Number of unique templates used: 7

Time used to render debug report: 0.0002 secs