Custom extension created to for an operator to fetch fixed number of characters is not working

Custom extension created to for an operator to fetch fixed number of characters is not working

Tuesday 29 June 2010 3:53:36 pm - 4 replies

Author Message

Norman ROCHE

Wednesday 30 June 2010 12:35:36 am

Hi,

I did not check your code but I think you should have a look to this as that does pretty much the same thing:

http://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/extract_left

even If I think that what you do really need is :

http://ez.no/doc/ez_publish/technical_manual/4_x/reference/template_operators/strings/shorten

Cheerz

Romeo Antony

Wednesday 30 June 2010 2:18:21 am

Thank you for helping me

Bertrand Dunogier

Wednesday 30 June 2010 5:17:57 am

Have you regenerated extensions autoloads after enabling the extension ?

In any case, a fatal error will usually give more information with site.ini/DebugSettings.DebugOutput = enabled.

Bertrand Dunogier
eZ Systems Engineering, Lyon
http://twitter.com/bdunogier
http://gplus.to/BertrandDunogier

Romeo Antony

Friday 02 July 2010 2:09:30 am

Bertrand, I have regenerated extensions autoloads.But now it is working only when I change this line $operatorValue = $this->substr($operatorValue,0,$number); to $operatorValue =substr($operatorValue,0,$number);

thank you for helping me ...Romeo

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

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