[dokuwiki] Re: Displaying image

tom corcoran wrote:
Great thanks, that works. It puts the image in a namespace under data/media. Created markup was:
{{:mynamespace:myimage.jpg|}}
Notice the colon beforehand and the | after. Should I update http://www.dokuwiki.org/syntax#images_and_other_files ?



The initial colon indicates that mynamespace is immediately off the "root", but as long as the image is stored under media/mynamespace, the initial colon should not be necessary, which is why the syntax page can correctly show the markup as:
           {{wiki:dokuwiki-128.png}}

If you look at the data/pages directory, you will find the wiki directory immediately under pages:
                  data/pages/wiki
Similarly, if you look in the media directory, you will find the following structure:
                media/wiki
where media is logically equivalent to pages, so that in both structures wiki has the same relationship to its "root".

As for the pipe, whatever you place after it will be assigned to both the title and alt properties of the image tag and will show up as a tooltip when you move your cursor over the image.

Myron

_____________________
Myron Turner
http://www.mturner.org
http://net18reaching.org/cityscapes



--
DokuWiki mailing list - more info at
http://wiki.splitbrain.org/wiki:mailinglist

Other related posts: