[dokuwiki] Patch attached: Optionally add a filetype to wikipage urls, e.g. .html to look like static html
- From: Helmut Tischer <htischer@xxxxxxxxxxxxxxxxx>
- To: dokuwiki@xxxxxxxxxxxxx
- Date: Sun, 08 Feb 2009 21:52:16 +0100
wikipage_filetype_suffix
Optionally add a filetype to wikipage urls, e.g. .html
In rewrite URL mode, this makes wiki pages look like static html.
As side effect fixes $conf['userewrite']==1 with $conf['useslash']==0
on windows host with ';' namespace separator.
Appending a filetype is optionally done when
$conf['userewrite'] is turned on and $conf['pagesuffix'] given.
Configuration in admin plugin supported.
Filetypes are also exported on exportlink, with matching filetype
for builtin and plugin renderers.
Filetype is still optional on entering URLs in Browser address line -
correct page is loaded with and without filetype.
Test:
After turning on as above, reload page with '?purge=true' and hit or
observe embedded wiki links.
Remove or change or add filetype in browser address line.
For testing exportlink, turn on $conf['phpok'] and in wikipage insert
<php>
print '<a href="'.exportlink('sub:subsub:test','raw').'">exportlink
raw</a>';
</php>
Helmut
Other related posts:
- » [dokuwiki] Patch attached: Optionally add a filetype to wikipage urls, e.g. .html to look like static html - Helmut Tischer
- » [dokuwiki] Re: Patch attached: Optionally add a filetype to wikipage urls, e.g. .html to look like static html- Andreas Gohr
- » [dokuwiki] Re: Patch attached: Optionally add a filetype to wikipage urls, e.g. .html to look like static html- Helmut Tischer
- » [dokuwiki] Re: Patch attached: Optionally add a filetype to wikipage urls, e.g. .html to look like static html- Sander Tekelenburg
- » [dokuwiki] Re: Patch attached: Optionally add a filetype to wikipage urls, e.g. .html to look like static html- Paul Bijnens
- » [dokuwiki] Re: Patch attached: Optionally add a filetype to wikipage urls, e.g. .html to look like static html- Helmut Tischer
- » [dokuwiki] Re: Patch attached: Optionally add a filetype to wikipage urls, e.g. .html to look like static html- Sander Tekelenburg
- » [dokuwiki] Re: Patch attached: Optionally add a filetype to wikipage urls, e.g. .html to look like static html- Helmut Tischer
- » [dokuwiki] Re: Patch attached: Optionally add a filetype to wikipage urls, e.g. .html to look like static html- Anika Henke
- » [dokuwiki] Re: Patch attached: Optionally add a filetype to wikipage urls, e.g. .html to look like static html- Sander Tekelenburg
- » [dokuwiki] Re: Patch attached: Optionally add a filetype to wikipage urls, e.g. .html to look like static html- Paul Bijnens
- » [dokuwiki] Re: Patch attached: Optionally add a filetype to wikipage urls, e.g. .html to look like static html- Andy Webber