<div dir="ltr"><div>I'm thinking about a couple of PmWiki features related to files and attachments.</div><div><br></div><div>When a file is "Attach:"ed to pm Wiki there are two of what I think of as "handlers".</div><div>If the file has an image extension, a 'handler' generates image markup to display the file as an image.</div><div>For all other file extensions a default 'handler' generates markup to allow the file to be downloaded.</div><div><br></div><div>The question is, is it possible to add a handler for a set of file extensions that generates markup specifc to those file extensions?</div><div><br></div><div>PmWiki supplies basics for managing attachments (or files) (e.g. a built in (:<a href="https://www.pmwiki.org/wiki/PmWiki/PageDirectives#attachlist">attachlist</a>:), (:if <a href="https://www.pmwiki.org/wiki/PmWiki/ConditionalMarkup">attachments </a>...:)).<br><br><a href="https://www.pmwiki.org/wiki/PmWiki/PageLists">Pagelists</a> does not recognise attachments, however for images the awesome (to me) recipe <a href="https://www.pmwiki.org/wiki/Cookbook/ThumbList">Thumblist</a>, and a few other recipes, allow selection and enumeration of image files and their display.</div><div>There is a good recipe, <a href="https://www.pmwiki.org/wiki/Cookbook/Attachtable">Attachtable</a>, to manage, select and enumerate attachments.</div><div><br></div><div>Let's say I am looking at a new class of files, say with the extensions .gpx or .kml.</div><div>Instead of displaying as a download link I'd like them to say use the %map% markup from the <a href="https://www.pmwiki.org/wiki/Cookbook/Attachtable">ape</a> recipe.</div><div>Also, I'd like some ability to select, sort, and enumerate them, not dissimilar to the way thumblist works for images.</div><div><br></div><div>Before I develop anything I'm keen to hear how you think this could fit into the existing PmWiki framework?</div><div><br></div><div>kia ora</div><div><br></div><div>Simon</div><div><br></div><div><br></div><div><br></div><div><br></div></div>