Good morning.
Can be used data tags to display a value returned by a function. I wanted to display something like %%globals.createMemberInfo(member_id)%% in a ToolTipText, but the method is never run.
Why do I need a method? Because the function creates HTML that shows some text data plus a MEDIA field. To show that MEDIA field I create a temp file using this code:
var _image = plugins.images.getImage(media);
var _tempFile = plugins.file.createTempFile('tmpMemberImg','.jpg')
plugins.file.writeFile(_tempFile, _image.getData())
application.output(_tempFile)
Maybe there is another way to do this.
Thanks in advance.