[dokuwiki] Re: DOKU_BASE
- From: "Martin Tschofen" <martin.tschofen@xxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Sun, 30 Apr 2006 13:23:18 -0500
Let me explain, there probably is a simpler way.
In my effort to get multiple wiki pages into one pdf for print purposes from a wiki, I ended up doing the following (I know of and use print stylesheets for this...). Collect all pages, then with ajax (thanks to Andi's searchindexer) I run every page through the template and capture the resulting html of each page into a file. In order for the styles and images to work properly I have to replace the link references with references that connect to the cached versions of the stylesheets and clean up some other stuff. I know this is convoluted but it lets me then turn the pages I need into one pdf (and hopefully soon the pages I need in the order I need them). For large sites this probably isn't suited (I've been testing it with 60-100 pages).
In order to fix the path references I have to take the absolute path to DOKU_BASE or because I couldn' t get it to work - getBaseURL() and find it's occurance in the html and replace it with the path to the cached files.
If there's a better way, I'd love to hear it...martin
On 4/30/06, Chris Smith <chris@xxxxxxxxxxxxx> wrote:
DOKU_BASE is the base URL for the DokuWiki installation. Do you need to access it? To generate links you should be using the standardised dokuwiki functions: - wl(), html_wikilink(), etc These will take into account config settings and any other DokuWiki requirements, and will also be upgraded if those settings or requirements change.
-- DokuWiki mailing list - more info at http://wiki.splitbrain.org/wiki:mailinglist