Re: Autoadjusted variables for ROOT
Andrew Kopeyko <[email protected]> Wed, 23 Jul 2003 16:15:12 +0400 (MSD)
| Newsgroups | gmane.comp.web.wml |
|---|---|
| Message-ID | <[email protected]> |
On Tue, 22 Jul 2003, Werner Heuser wrote: > On Tue, Jul 22, 2003 at 06:14:41PM +0100, [email protected] wrote: > > > > I am trying to cause all my HTML pages to reference a global > > stylesheet, even ones in subdirectories, so the suggested way to do > > Why do you not just use an abolute pathname to your webservers > document root, e.g. "/stylesheet.css"? There are many reasons for making relative links - for example, if you plan to copy your document tree to CD. In this case I use 'canonpath()' function from 'wml::sup::path(3)' include: #use wml::sup::path <a href= <: print &canonpath(qq(<get-var ROOT>/<get-var filename>));:>> <get-var name/></a> It works! -- Best regards, Andrew Kopeyko <[email protected]> Head of NOC Rambler Co. http://www.rambler.ru/ phone : +7 095 745-3619 _____________________________________________________________________ Website META Language (WML) http://thewml.org User Support Mailing List [email protected] Automated List Manager [email protected]