« Formatting HTML with Templates Main | Joining Queries a la Francais »

Media Images can cause hair loss

I have had a few emails and the forum has been hot lately with questions about sourcing an image from the OA_MEDIA directory. the more popular question is for an RTF template but there are those of you trying to update the purchasing template which is sadly written in XSL-FO and not in RTF format.


RTF Templates


The user guide covers this and its now correct :o! You can either place a dummy image in your template and then in the Web tab of the image properties put in the following:

url:{'${OA_MEDIA}/IMAGE_FILE'}

For example

url:{'${OA_MEDIA}/FNDSSCORP.gif'}

Notice the use of curly braces rather than rounded and the position of quotation marks. Its very important, otherwise you are going to be pulling hair out at a rapid rate. If you have an image name embedded in your XML you can use that too, just need to use the concat command to bind the values together:

url:{concat(${OA_MEDIA},'/',.//IMAGE_NAME'}

the other option is to embed the necessary XSLFO code into a field in the template:

<fo:external-graphic src="url('{'${OA_MEDIA}/FNDSSCORP.gif'}')" />

XSLFO Templates


IF you're updating that PO template and just want your own logo, then you'll find that the PO team have provided a placeholder in their template. Just uncomment it and add in the OA_MEDIA reference

src="url('{'${OA_MEDIA}/fwkhp_folder.gif'}')

Be aware the format is subtly different to the RTF format ... sorry not much we could do there. Just be careful to avoid that hair loss :)


 


 


 

Comments (3)

Hi Tim,

I tried the same given by you for image but it didn't work for me. This is what I was using




But it's not working. Any suggestions on where I went wrong? But if hard code it, it is working. Please help me.

Thanks,
Sharmila

Tommy:

Hi Tim,
I'd like to include some images using URL-parameters and I've got an XML-Source with tags called PAGENUMBER.
So I made a for-each loop in MS Word with a dynamic URL but it doesn't work. I thought I could write something like : url:{concat('http://bk7746/xt.svg?view_id=',PAGENUMBER,'&.svg')}

Do you see my fault?

Thanks
Tommy

I had search products for controlling the hair loss. But no good results came. But when I found IHT-9 the herbal hair regrowth shampoo from the website www.iht9.com , I start applying this and within few weeks, I am actually getting my hair back. It’s really a true herbal shampoo I have ever got.

Post a comment