Navbar links, WML files in subdirs -> HTML, -DROOT~.
Y Giridhar Appaji Nag <[email protected]> Mon, 10 Nov 2003 15:08:37 +0530
| Newsgroups | gmane.comp.web.wml |
|---|---|
| Message-ID | <80A07E7023257741B258296933B7426C22129B@ubiinmbx01.ubinetics.co.in> |
Hi, I am using the WML that is shipped with Debian Woody. And I am facing a problem with generation of the links in the navbar in subdirectories The navbar links are correct in the top level directory and also in the first subdirectory of the top level directory. But at further one more subdirectory depth (the 2nd level), the links are not correct. Something like ... public_html | -> interests | | | -> kites | | | -> free-software | -> work My .wmlrc file is in the public_html directory and it has a -DROOT~. in it. The navabar.inc file (based on the e.g. in the wml::des:navbar man page). The navbar.inc file has three elements for navbar one each for public_html/index.html, interests/index.html and work/index.html. The urlbase passed in the navbar is . In public_html, the index.hrml has links that look: work/index.html and interests/index.html in the navbar. In work/index.html, the links looks like ../interests/index.html and ../index.html in the navbar In interests/index.html, the links looks like ../work/index.html and ../index.html in the navbar However, in the interests/kites/index.html, the links look like this /index.html and /work/index.html (The same is true in the HTML file in interests/free-software/index.html. The "../.." prefix is missing from the links. I assume as per the -DROOT~. and in the urlbase passed to navbar, I must have ../../index.html ../../work/index.html rather than /index.html /work/index.html. So in the browser, when the files that are NOT in free-software or the kites directory are rendered, they have links that look like ... http://my.dom/~me/index.html http://my.dom/~me/work/index.html http://my.dom/~me/interests/index.html But in the kites and the free-software directory, they look like ... http://my.dom/index.html http://my.dom/work/index.html http://my.dom/interests/index.html I am invoking the wmk program as "wmk -a" from within the public_html directory. I also tried juggling around with the <get-var ROOT> and . I just printed them as output lines in the output HTML file and they seem to be fine (. in the public_html directory files, .. in work and interests HTML files and ../.. in the interests/free-software and interests/kites HTML files), except that the links in the second level directories are for the navbar are not coming right. Am I doing something stupid here? I assume there is some silly mistake on my part, as the -DVARNAME~VARVALUE is supposed to be used for just achieving this relative substitution. Any clue? Giridhar -- Y Giridhar Appaji Nag http://www.pratapgarh.com/appaji Controversy is wasteful, but lays things out, shows where people stand, (or refuse to), is a necessary yardstick of opinion, and is, heavenly compared to the alternative of being a helpless silent passive tool of anybody loud and obnoxious who knows how to bark at some sheep. - Alfie Costa on debian-project an individual are not necessarily those of UbiNetics _____________________________________________________________________ Website META Language (WML) http://thewml.org User Support Mailing List [email protected] Automated List Manager [email protected]