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
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
CGI.Script_name ?
Thanks,
CC
x56927
[Todays Threads]
[This Message]
[Subscription]
[Fast Unsubscribe]
[User Settings]
[Donations and Support]
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
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
5 matches
Mail list logo