Closed Thread Icon

Topic awaiting preservation: DOCUMENT_NAME with out the extension (Page 1 of 1) Pages that link to <a href="https://ozoneasylum.com/backlink?for=12186" title="Pages that link to Topic awaiting preservation: DOCUMENT_NAME with out the extension (Page 1 of 1)" rel="nofollow" >Topic awaiting preservation: DOCUMENT_NAME with out the extension <span class="small">(Page 1 of 1)</span>\

 
Schitzoboy
Paranoid (IV) Inmate

From: Yes
Insane since: Feb 2001

posted 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.

Thanks,
Schitzo

mr.maX
Maniac (V) Mad Scientist

From: Belgrade, Serbia
Insane since: Sep 2000

posted 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...


Schitzoboy
Paranoid (IV) Inmate

From: Yes
Insane since: Feb 2001

posted 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.

Schitzo

« BackwardsOnwards »

Show Forum Drop Down Menu