I would say, use <base href="http://www.yourdomain.com/";> in your site, then in your 
img paths you can just refer to the images as image/myphoto.jpg

Or pass the mapping into the custom tag..

<img src="#attributes.mapping#image/myphoto.jpg">

Taco

-----Original Message-----
From: Gareth Edwards [mailto:[EMAIL PROTECTED]
Sent: Monday, 12 July 2004 8:38 AM
To: CFAussie Mailing List
Subject: [cfaussie] Custom tags and Images.


Just want to get peoples opinion on Custom tags and images.

Using cfimport to import a library of custom tags so that they may be used through out 
my application.

We are creating the custom tags so they are portable, so little has to be done to move 
the library from application to application.

Problem is with IMG paths?  from what I know, custom tags become their parent when 
referencing paths? so I cant call the images/ directory from the custom tag directory, 
there for making the custom tag less portable, because the image path has to be 
relative to the calling page?

Who has faced this problem? what are the possible solutions?

One idea I had was to use GetCurrentTemplatePath() and create a way of working out 
what the relative path is from its value?

Cheers,

Gareth.

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Register now for the 3rd National Conference on Tourism Futures, being held in 
Townsville, North Queensland 4-7 August - www.tq.com.au/tfconf

---
You are currently subscribed to cfaussie as: [EMAIL PROTECTED]
To unsubscribe send a blank email to [EMAIL PROTECTED]
Aussie Macromedia Developers: http://lists.daemon.com.au/

Reply via email to