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.
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.
See these two documents ... To replace the elements of the array http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Template-operators/Arrays/replace
To replace in a string ... http://doc.ez.no/eZ-Publish/Technical-manual/4.x/Reference/Template-operators/Strings/replace
Source: https://habr.com/ru/post/1341074/More articles:Pymssql how to use it to read Unicode data from MSSQL2008 - pythonHow does Smalltalk work with databases? - databaseUIButton Table footer not responding - iphonePhpPgAdmin asks for a username and password - phpSilverlight ApplicationLifetimeObjects vs Application ResourceDictionary - silverlightASP.NET AJAX Refused to get unsafe jsonerror header - javascriptSeparating an HTML document with BeautifulSoup - pythondisplay popover when user clicks in text box? - objective-corg.hibernate.MappingException: Type not supported ENVERs - javaDrupal: an attempt to use GeSHi with CKeditor - drupalAll Articles