Implement a dynamic logo/image in the header of an rtf template
Hello,
I am trying to implement a dynamic logo in the header of an rtf template.
The idea was to insert an image and resize to say 0.5" x 1.5" and then in the Alt Text enter something to the effect:
url:{concat(substr($CURRENT_SERVER_URL, 1, instr($CURRENT_SERVER_URL, ‘/’, 8,1)-1),'/analyticsRes/my_images','/',IMGFILE)}
So basically take the server URL, extract the host+port and append the /analyticsRes/my_images/ and concat that with IMGFILE which is coming from the data model.
Two Issues:
1. For initial testing, when I try to embed this image in the body section of the template, it seems that the Alt Text section doesn't like the above url construct which uses the $CURRENT_SERVER_URL stuff. If I were to hard-code the full directory path instead of the analyticsRes path, this part works.