On Sat, Jun 27, 2009 at 11:59, Petko Yotov<5...@5ko.fr> wrote: > On Tuesday 23 June 2009 21:02:48 Jan Bernitt wrote: >> I did my thesis using the PmWiki. As part of the software I developed an >> export of SVG-files. I added an custom markup to include SVGs as objects >> shown like images by most browsers. But therefore they have to exist in >> a fix directory. Now I think its easier to use the upload function. I >> allowed the .svg file extension for uploads. But I can't find the lines >> to change so that svg-files will use custom rendering like images. Where >> do I have to look ? > > If you want PmWiki to include an SVG file with the <img src="pic.svg"/> HTML > tag, place this in config.php : > > $ImgExtPattern="\\.(?:gif|jpg|jpeg|png|svg|GIF|JPG|JPEG|PNG|SVG)"; > > As of today, however, only Opera and Safari seem to support such embedding. > > To allow uploading of .svg files, add also to config.php : > $UploadExts['svg'] = "image/svg+xml"; > > If you have to use an <iframe> of an <object>, this recipe could be helpful: > http://www.pmwiki.org/wiki/Cookbook/LinkedResourceExtras >
Hi, This makes me remember that I proposed this recipe as a core candidate a long time ago: http://article.gmane.org/gmane.comp.web.wiki.pmwiki.devel/27 http://www.mail-archive.com/pmwiki-us...@pmichaud.com/msg12547.html http://www.mail-archive.com/pmwiki-us...@pmichaud.com/msg06932.html In the same mood as http://www.pmwiki.org/wiki/PITS/01102 (FPLTemplate break), the recipe purpose is to create development hooks in link/Attachment handling. The current recipe design is to be seen as a proof-of-concept and may surely be improved before being a real core candidate. -- Dominique _______________________________________________ pmwiki-devel mailing list pmwiki-devel@pmichaud.com http://www.pmichaud.com/mailman/listinfo/pmwiki-devel