extract_left and template compiling

Author Message

Laurent BOURREL

Monday 24 September 2007 5:26:54 am

Hi all,

I have a strange behavior with the <b>extract_left</b> operator.

This is ok :

{'/'|ezroot(no, full)|extract_left(30)}

I have an error with the following, <b>only with TemplateCompile=enabled</b> :

{def $tmppos = 30}
{'/'|ezroot(no, full)|extract_left($tmppos)}

=> Parse error: syntax error, unexpected '%' in... my php compiled template

Can't i use a variable as a parameter !?

I've got this problem on a 3.9.1 and 3.9.2... i'm going to do my own operator, but what a shame ! By the way, it's the same problem with <i>extract</i>

Any ideas ?

André R.

Tuesday 25 September 2007 12:49:03 am

Could you write a bug report on this one?
Seems to be a bug in the generated template compile code in the operator.

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

Laurent BOURREL

Tuesday 25 September 2007 5:26:52 am

Done !
#id = 01149

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