Re: Brain Fart...GetTemplatePath(), I don't want it *all*

2004-09-15 Thread Al Everett
Another alternative: truncatedPath=Replace(GetCurrentTemplatePath,"C:\Inetpub\wwwroot\MySite\","") --- Jeff Small <[EMAIL PROTECTED]> wrote: > When I output GetTemplatePath() on my home page, I see: > C:\Inetpub\wwwroot\MySite\index.cfm > > When I'm on the Gallery page, naturally, I see: > C:\I

Re: Brain Fart...GetTemplatePath(), I don't want it *all*

2004-09-15 Thread guy . mcdowell
What if you did a function on it like? remove)> I haven't actually tried this, so I'm not sure exactly how to set the start point and would only work if the path to your root was consistently the same num of characters. Guy McDowell Web Developer [EMAIL PROTECTED] - Magma Communications

Re: Brain Fart...GetTemplatePath(), I don't want it *all*

2004-09-15 Thread Casey C Cook
CGI.Script_name ? Thanks, CC x56927 [Todays Threads] [This Message] [Subscription] [Fast Unsubscribe] [User Settings] [Donations and Support]

Re: Brain Fart...GetTemplatePath(), I don't want it *all*

2004-09-15 Thread Barney Boisvert
How about cgi.script_name instead?  That should give you what you need. cheers, barneyb On Wed, 15 Sep 2004 12:05:32 -0400, Jeff Small <[EMAIL PROTECTED]> wrote: > When I output GetTemplatePath() on my home page, I see: > C:\Inetpub\wwwroot\MySite\index.cfm > > When I'm on the Gallery page, natu

Brain Fart...GetTemplatePath(), I don't want it *all*

2004-09-15 Thread Jeff Small
When I output GetTemplatePath() on my home page, I see: C:\Inetpub\wwwroot\MySite\index.cfm When I'm on the Gallery page, naturally, I see: C:\Inetpub\wwwroot\MySite\Gallery\index.cfm I'd love to be able to trim everything from here: C:\Inetpub\wwwroot\MySite\ and be left with: "index.cfm" or "G