fullpath. Full name of file from server's root directory

^file:fullpath[filename]

Retrieves full name of file from server's root directory (see also "
Appendix 1: Paths to files and directories").

Example: page
/document.html contains a link to some image. True path to the requested document, however, may be different (e.g. if you use module mod_rewrite on Apache web-server). In this case, if you place a relative link to the image, the image will not be displayed by browser, since browser has no idea about mod_rewrite and will regard all relative paths as relative to the requested document.

That is why it is better to replace relative path with absolute:

$image[^image::measure[^file:fullpath[image.gif]]]
^image.
html[]

Construction…
<img src="/image.gif" width="" height="" />

…will result in code containing absolute path.


Copyright © 1997–2021 Art. Lebedev Studio | http://www.artlebedev.com Last updated: 20.09.2007