ExtensionHub-Talk
This space is for User-contributed commentary and notes. Please include your name and a date along with your comment.
Feel free to add new threads here.
Moving to the core
I support this moving to the core
Could we drop the compressed extensions feature? Having a hub.php file separate from the core/scripts files allows for a very lightweight decompression proxy; if it is in scripts, pmwiki.php will be called which will load config.php and it, and maybe 20 other scripts. Alternatively, we can have only the tiny zip proxy functions in extensions/hub.php which people will need to install. I now also prefer for the extensions directory to be outside of the pmwiki distribution tree -- so that the latter can be replaced and updated independently. --Petko
Having only uncompressed extension folders as installed software is fine with me.
Tutorial
Hi Petko, I was thinking of grouping all my snippets into one extension, but I'm having some difficulty. When you have some time, could you write a short tutorial to compile the main extensionsX.php which calls other pages (.php, .css, .js and standard pm-pages)? Thank you.
Furthermore, is it possible from the extension to add a custom skin (with a new Site.SkinElements page)?- Frank
Sorry for the delay, I am in the middle of a quite intense project with not enough sleep. I have drafted the page ExtensionDesign that may help you start. Remember this requires PmWiki 2.3.31 or more recent, and I've just updated the Hub and 2 of the sample extensions today (to simplify the merging of the local and the default configuration arrays). Please do let me know if you have any questions or difficulties, or if you uncover bugs.
Yes, you can set the $Skin variable from an extension, and ship wiki pages, but if a wiki page already exists on the wiki, that page will be used and not yours. If you have a custom skin, you should distribute the skin pages with it, see for example how Triad does it - it is a different mechanism, you directly edit $WikiLibDirs. --Petko
Talk page for the ExtensionHub recipe (users).