[dokuwiki] Re: patch: Doku_Renderer_xhtml

  • From: Michael Klier <chi@xxxxxxxxxxx>
  • To: dokuwiki@xxxxxxxxxxxxx
  • Date: Thu, 17 Jan 2008 16:40:10 +0100

Spring Pierre wrote:
> hi all,
> 
> here is a patch, that takes care of the following problem:
> 
> when you insert media on root level, say
> 
>     my_pic.png
> 
> and display it on a page with leading namespace, say
> 
>     name:space:page
> 
> then the renderer tries to display the following media:
> 
>     name:space:my_pic.png
> 
> because resolve_mediaid() appends the namespace given to it.
> 
> this seems like the best fix for this problem.

This is rather a feature than a problem (unless I am mistaken ;)). This way
you don't have to append the whole namespace if you want to link to a picture
in the same namespace. If you you want to display a picture in the root
namespace from another namespace you have to use {{:my_pic.png}} (note the
semicolon).

Best Regards,
    Chi

-- 
Michael Klier

mail:   chi@xxxxxxxxxxx
www:    http://www.chimeric.de
icq:    206179334
jabber: chi@xxxxxxxxxxxxxxxxxx
key:    http://downloads.chimeric.de/chi.asc
key-id: 0x8308F551

Other related posts: