Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

wordtoimage

Summary

Returns the input string with embedded image tags.

Usage

input|wordtoimage()

Returns

The input string with embedded image tags.

Description

This operator looks for special character sequences in the input string. When a match is found, it will be replaced by an image tag. For example, the sequence ":-)" will be replaced by a small image of a smiling face. The character sequences that should be replaced and the images that should be used are defined in the "wordtoimage.ini" configuration file.

Examples

Example 1

{'No problemo... :-)'|wordtoimage()}

This would return the input string where the ":-)" sequence would be replaced by an image tag referencing a small image of a smiling face.

Balazs Halasy (05/02/2004 11:02 am)

Balazs Halasy (04/05/2005 2:54 pm)


Comments

There are no comments.