Forums / Developer / Bug in template operator append ?

"Please Note:
  • At the specific request of Ibexa we are changing this projects name to "Exponential" or "Exponential (CMS)" effective as of August, 11th 2025.
  • This project is not associated with the original eZ Publish software or its original developer, eZ Systems or Ibexa".

Bug in template operator append ?

Author Message

Marko Pohl

Friday 20 February 2004 12:49:18 am

If you try this:

{"Testing "|append( "1 ", "2 ", "3" )}

as written in the docs you get only the first item appended:
'Testing 1'
This works, giving you 'Testing 1 2 3':

{"Testing "|append("1 ")|append("2 ")|append("3" )}

Any ideas?

I Use Exponential 3.3-3 (3.3) Rev 5019

Vidar Langseid

Tuesday 24 February 2004 3:21:27 am

The append operator cannot append multiple strings to a string.

I have now fixed this so that this will work in 3.2-5 (rev 5240) and 3.3-4 rev5241)

I have also updated the documentation:
http://ez.no/ez_publish/documentation/reference/template_operators/arrays/append

Best regards,
Vidar