How to use custom PHP functions in eZ Publish Templates?

Hi I am wondering if I can use PHP functions in ez to publish templates. If someone knows how to use it. Any hint would be great.

for example: - I want to use the PHP str_replace () function in the ez-publish template.

+4
source share
2 answers

First, we need to make an extension to use the PHP function in the ez publication.

The steps for creating an extension in ezpublish are given in the link below:

http://blog.developeronhire.com/using-custom-php-functions-in-ez-publish-templates/

Hope this solves your problem.

+4
source

Source: https://habr.com/ru/post/1341074/


All Articles