E D R , A S I H C RSS

Moin Moin Discussion

Talk about the things on MoinMoinTodo and MoinMoinIdeas in this space...

Images

Q: How do you inline an image stored locally? (e.g. ../wiki-moimoin/data/images/picture.gif)

A: See the ~cpp [[Icon]] macro; besides that, fully qualified URLs to the wiki server work, too.

  • R: The Icon macro worked well. I wanted to avoid the fully qualified URL because to access the Wiki in question requires password authentication. Including an image using the full URL caused my webserver (Apache 1.3.19) to reprompt for authentication whenever the page was viewed or re-edited. Perhaps a default ~cpp [[Image]] macro could be added to the distribution (essentially identical to ~cpp [[Icon]] ) which isn't relative to the data/img directory. (!) I've actually been thinking about trying to cook up my own "upload image" (or upload attachment) macro. I need to familiarize myself with the MoinMoin source first, but would others find this useful?

  • Note: Regarding the upload feature - pls note that the PikiePikie also implemented in Python already has this feature, see http://pikie.darktech.org/cgi/pikie?UploadImage ... so I guess you could borrow some code from there :) -- J
Valid XHTML 1.0! Valid CSS! powered by MoniWiki
last modified 2021-02-07 05:23:47
Processing time 0.0217 sec