Use CGI Variables to Assign body ID
I need help with a dynamic way to assign an ID to the body tag on static CFM pages.
I've been doing this manually, and was hoping to be able to do it with the cgi.SCRIPT_NAME variable. The problem is the ".cfm" gets included in the variable name. Also, if the page is in a sub-directory, the path also gets included.
I'd like to be able to dynamically at the page name, truncating the extension and path. Is this possible in CF8/CF9? Any help would be greatly appreciated.
