Forums / Suggestions / Text operators

Text operators

Author Message

Gunnstein Lye

Tuesday 01 July 2003 5:16:54 am

Lots of operators for text are needed, they could be placed in a module. E.g. substr, contains, containsregexp, startswith, endswith, replace, explode etc.

Paul Borgermans

Tuesday 01 July 2003 5:21:47 am

Are you guys having a party in Skien?

;-)

--paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Paul Forsyth

Tuesday 01 July 2003 6:07:02 am

I am wondering if we really need to keep extending ez with more and more php functions.

What about a more flexible framework that may allow a function and parameters through on the template level to the php call underneath. That way the door is open to do more.

Obviously this would be limited to simple operators...

paul

Paul Borgermans

Tuesday 01 July 2003 6:43:58 am

But that's what Gunnstein suggested: they are thean available for use in templates.

--paul

eZ Publish, eZ Find, Solr expert consulting and training
http://twitter.com/paulborgermans

Paul Forsyth

Tuesday 01 July 2003 7:46:49 am

I thought he was suggesting defining new operators that mapped to php ones. I would prefer a generic way of letting operators through...

Gunnstein Lye

Tuesday 01 July 2003 9:12:37 am

Yes, I was thinking about mapping. The ability to use PHP code directly could be useful. Don't know how complex it would be to do that, though.

Björn Dieding@xrow.de

Tuesday 01 July 2003 5:12:48 pm

I think it is good to have some string function/operators in the template engine.

That way we can better design the content returning from the contentobjects.

Looking for a new job? http://www.xrow.com/xrow-GmbH/Jobs
Looking for hosting? http://hostingezpublish.com
-----------------------------------------------------------------------------
GMT +01:00 Hannover, Germany
Web: http://www.xrow.com/

Sven Ryen

Friday 04 July 2003 2:11:49 am

Correct me if I'm wrong, but from what I read, the eZTemplatePHPOperator already offers the means for adding such facilities. Couldn't be to hard to make a module, no?