[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: Re: DOCBOOK-APPS: absolute links with website2
On Tuesday, March 26, Sylvain Amrani wrote: > Hi, > > I don't want relative links for website pages. > > I would like that all the links generated with the website2 > stylesheets look like this: > http://myserver/path/dir/the-page-in-the-filename-attribute.html > > but not this: > ../directory/filename.html > > Is there an easy way to do such things ? > Hi Sylvain, You're talking about the navigational links, right? There's a simple hack I use that does the job. In your site-layout file, in a tocentry element, assign the output filename attribute the url you want to appear in the navigation links. It'll generate some funky subdirectories which you can delete after the build. You'll also need some sort of dummy.xml source file for the page attribute. Here's an example straight from my site-layout.xml file: <!-- ============== Mailing List Pages ============== --> <tocentry page="mailing-lists.xml" id="mailing-lists" filename="mailing-lists.html"> <title>Mailing Lists</title> <tocentry page="dummy.xml" id="dummy" filename="http://trinity-heights.org/mailman/listinfo/announce"> <title>Announcements</title></tocentry> <tocentry page="dummy.xml" id="dummy" filename="http://trinity-heights.org/mailman/listinfo/discuss"> <title>General Discussion</title></tocentry> </tocentry> <!-- ======== END Lists Pages ========= --> I have a Makefile that cleans up all the http:... gunk after the build. The downside is that these links take you off-site, which means you lose the groovy navigational bar:-) Lemme know if this achieves what you want it to. You can test the resulting 'Mailing List' navbar links at this site: http://trinity-heights.org/mailing-lists.html Hope that helps, Mark > (the reasons I need this is that I wan't to use website to generate > webpages that will be hard-coded in a CGI. Using relative links > will make pages relatives to the cgi path, what is wrong). > > Thanks for you help > > -- > Sylvain Amrani > sam at samrani dot com -- _____________________________________ Mark Johnson <mark@duke.edu> Debian SGML <mrj@debian.org> Home Page: <http://dulug.duke.edu/~mark/> GPG fp: 50DF A22D 5119 3485 E9E4 89B2 BCBC B2C8 2BE2 FE81
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC