Topic awaiting preservation: DOCUMENT_NAME with out the extension (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Yes |
posted 04-20-2002 14:21
is there anyway to get code: <!--#echo var="DOCUMENT_NAME"--> to output the file name without the extension? I could always resort to some sort of CGI but then I'd have to move this file to the cgi-bin and I'd like to avoid that. |
Maniac (V) Mad Scientist From: Belgrade, Serbia |
posted 04-21-2002 06:58
You'll have to use some server-side scripting in order to do that. Also, depending on what you want to do with document name (i.e. do you need it to do some server-side stuff or on client-side stuff), you can use that SSI call to store document name in JavaScript variable and then use JavaScript on the client side to remove extension... |
Paranoid (IV) Inmate From: Yes |
posted 04-21-2002 07:20
I'm using it for the title attribute since my pages call a header and footer via SSI. If I have to to do some CGI I'll just hold off untill I fix all the other problems with my site. I just though schitzomedia - home would look better than schitzomedia - home.shtml. |