Problem:
I have a dokuwiki install with a bazillion places of links to files like:
[[ \\dokuwikiserver1\share\file.txt | File.txt ]]
I'd like to have an easy way to update that path to "dokuwikiserver2" when moving the site to a new server.
I'm open to ideas but what I came up with so far is to use a php function to generate the link. So in my page I'd have:
<php>myshare('share\file.txt','File.txt');</php>
And in a php include file:
function myshare($path,$title) {
echo '[[\\dokuwikiserver2\' . $path . ' | ' . $title . ']]';
}
Dokuwiki doesn't render that result, however, so you just see the dokuwiki syntax/code.
Looking for suggestions on either how to get dokuwiki to render the result of my php function or a different approach that could work.
Thanks!