eZ Community » Forums » General » SHA1 operator in a template
expandshrink

SHA1 operator in a template

SHA1 operator in a template

Tuesday 30 September 2014 10:26:08 pm - 2 replies

Hi,

 

is it possible to use sha1 operator in a template?

'string' | md5() works perfectly fine.

 

thanks in advance for help

 

Tomas

Tuesday 30 September 2014 11:09:54 pm

Add these lines to template.ini.append.php, then you can call it in the template like md5:

[PHP]
PHPOperatorList[sha1]=sha1
{'secret'|sha1()}

https://doc.ez.no/eZ-Publish/Tech...les/template.ini/PHP/PHPOperatorList

Wednesday 01 October 2014 8:02:52 pm

Thanks a lot, this change solved my problem.

expandshrink

You must be logged in to post messages in this topic!

36 542 Users on board!

Forums menu

Proudly Developed with from