Jamie,
Yes you can, I have written some custom tags to do what your asking.
Below is the basics of them:-)
Mappings on the fly: Is a little involved with code an if your interested I
can pass on a custumtag to do this for you.
Customtag Paths is a little easier:
//Load the ServiceFactory
factory = CreateObject("java", "coldfusion.server.ServiceFactory");
request.runtime = factory.getRuntimeService();
//Expand the customtag path or make it a relevant path
ctpath = ExpandPath('Customtags');
//Do not change this as it is required by coldfusion..
newMapping = "/WEB-INF/customtags" & getTickCount();
//Sets the customtag path CF for some reason has a bean listener to this
//and will automatically update the settings when this is changed.
//Haven't really figured out how it does this but it does it.
request.runtime.customtags[newMapping] = ctpath;
//In one case, I had some ask me to hide the changes they were making to the
//hosting server, so to delete the customtag path just do the following
//Delete custom tag path, maybe a better way but it works for now
result = StructFindValue(request.runtime.customtags,ctpath);
structDelete(request.runtime.customtags,result[1].key);
Hope that helps if you have any questions don't hesitate to ask me.
I haven't had a chance to place the above into a custom tag as yet, one day
maybe.
Regards
Andrew Scott
Technical Consultant
NuSphere Pty Ltd
Level 2/33 Bank Street
South Melbourne, Victoria, 3205
Phone: 03 9686 0485 - Fax: 03 9699 7976
-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Jamie
Lawrence Jenner
Sent: Wednesday, 9 June 2004 6:16 AM
To: CFAussie Mailing List
Subject: [cfaussie] creating mappings for custom tags
Hi all,
i have a central site which will contain the custom tags and components etc
for any sites using my e commerce application.
I do not host the site myself, i have a reseller account with a company.
Therefore i do not have access to cf administrator.
Using components is fine, i have a mapping set up. The central site also
contains a load of custom tags which are used by all of the other sites. I
have played around with my local cf administrator and i can get my custom
tags working using dot notation cfmodule, but only if the tags are placed in
the custom tags folder. As i do not have access to the cfadmin remotely, i
would have to send the tags to my hoster, then they would have to install
them into the custom tags directory for me, not very flexible, especially as
i am currently developing the system.
Is there any way in which i can use custom tags by dot notation from the
'child' sites using a mapping to a 'custom tags' folder within my central
site (just like using components). Can i create an object of some sort? I
currently have five sites using the tags but they have the tags stored
within their local directory, and accessed using relative links, not very
good when i update them as i have to do it five times.
I await your wisdom on this matter!
cheers in advance
Jamo
---
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/
---
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/