Stupic question but so important to begin...

Author Message

pierre oOo

Monday 29 October 2007 9:46:45 am

hi,

what's the template language for the negation of " eq " ???
I tried many things like " !eq" , "not eq ", etc...
I'm getting mad ! ... please help me...

I can get throught it with an "else", but It's not a good solution...

here's the condition I want to invert :

{if eq($node.object.current_language, $translation.item.language_code)}

Many Thanks.

[::ink:.]

André R.

Monday 29 October 2007 10:14:29 am

{if ne($node.object.current_language, $translation.item.language_code)}

Alternativly (but more work):

{if eq($node.object.current_language, $translation.item.language_code)|not()}

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

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 18 2025 15:03:29
Script start
Timing: Jan 18 2025 15:03:29
Module start 'layout'
Timing: Jan 18 2025 15:03:29
Module start 'content'
Timing: Jan 18 2025 15:03:29
Module end 'content'
Timing: Jan 18 2025 15:03:29
Script end

Main resources:

Total runtime0.0154 sec
Peak memory usage2,048.0000 KB
Database Queries3

Timing points:

CheckpointStart (sec)Duration (sec)Memory at start (KB)Memory used (KB)
Script start 0.00000.0062 589.1641152.6406
Module start 'layout' 0.00620.0032 741.804739.4766
Module start 'content' 0.00940.0043 781.281389.4922
Module end 'content' 0.01370.0017 870.773430.3047
Script end 0.0154  901.0781 

Time accumulators:

 Accumulator Duration (sec) Duration (%) Count Average (sec)
Ini load
Load cache0.002515.9655140.0002
Check MTime0.00106.7391140.0001
Mysql Total
Database connection0.00127.789610.0012
Mysqli_queries0.002617.082530.0009
Looping result0.00000.064910.0000
Template Total0.00138.610.0013
Template load0.00064.050910.0006
Template processing0.00074.491210.0007
Override
Cache load0.00042.799410.0004
General
dbfile0.00031.863280.0000
String conversion0.00000.043340.0000
Note: percentages do not add up to 100% because some accumulators overlap

Templates used to render the page:

UsageRequested templateTemplateTemplate loadedEditOverride
1print_pagelayout.tpl<No override>extension/community/design/community/templates/print_pagelayout.tplEdit templateOverride template
 Number of times templates used: 1
 Number of unique templates used: 1

Time used to render debug report: 0.0001 secs