summaryrefslogtreecommitdiff
path: root/doc/plugins/write.mdwn
AgeCommit message (Collapse)Author
2008-07-17Add a postscan hook.Joey Hess
* Add a postscan hook. * search: Use postscan hook, avoid updating index when previewing.
2008-07-13Error handling improvement for preprocess hooks. It's now safe to call ↵Joey Hess
error() from such hooks; it will cause a nicely formatted error message to be inserted into the page.
2008-07-10reviewed this againJoey Hess
2008-07-10document setup pluginsJoey Hess
2008-06-28call format hooks when generating page previewsJoey Hess
* toc: Revert change in 2.45 that made it run at sanitize time. This breaks use of toc in a sidebar. * Call format hooks when generating page previews, thus fixing toc display there, as well as fixing inlins to again display in page previews, since it's started using format hooks. This also allows several other things, like embed, that use format hooks, to work during page preview time. * Format hooks should not rely on getting an entire html document, as they will only get the body during page preview. * toggle: Deal with preview mode when adding javascript.
2008-06-04Pass a destpage parameter to the sanitize hook.Joey Hess
Because the search plugin needed it, also because it's one of the few plugins that didn't already have it. I also considered adding it to htmlize, but I really cannot imagine caring what the destpage is when htmlizing. (I'll probably be poven wrong later.)
2008-06-01document that pagestate values can be anything Storable handlesJoey Hess
This only started being true by accident when the index was changed to use Storable, but it's a nice feature.
2008-05-07whitespaceJoey Hess
2008-05-02Fix ugly display when editing a page that has vanished.Joey Hess
srcfile now has an optional second parameter to avoid it throwing an error if the source file does not exist.
2008-03-28web commit by http://certifi.ca/bronsonJoey Hess
2008-03-12typoJoey Hess
2008-02-11* Add the linkify and scan hooks. These hooks can be used to implementJoey Hess
custom, first-class types of wikilinks. * Move standard wikilink implementation to a new wikilink plugin, which will of course be enabled by default.
2008-02-04note about will_render and previewJoey Hess
2008-02-03* cgi hooks are now run before ikiwiki state is loaded.Joey Hess
* This allows locking the wiki before loading state, which avoids some tricky locking code when saving a web edit.
2008-01-29* meta: Add pagespec functions to match against title, author, authorurl,Joey Hess
license, and copyright. This can be used to create custom RecentChanges. * meta: To support the pagespec functions, metadata about pages has to be retained as pagestate. * Fix encoding bug when pagestate values contained spaces.
2008-01-29updateJoey Hess
2008-01-29improve support for internal pagesJoey Hess
This makes it a lot quicker to deal with lots of recentchanges pages appearing and disappearing. It avoids needing to clutter up pagespecs with exclusions for those pages, by making normal pagespecs not match them.
2008-01-29document the new refresh hookJoey Hess
2008-01-29don't render internal-use pages, and document themJoey Hess
2008-01-09* meta: Run in scan mode again (more intelligently) and re-add support forJoey Hess
meta link. * Fix support for the case where metadata appears after an inline directive. This was broken in version 2.16.
2008-01-07* Improved the canedit hook interface, allowing a callback function to beJoey Hess
returned (and not run in some cases) rather than the plugins directly forcing a user to log in. * opendiscussion: allow editing of the toplevel discussion page, and, indirectly, allow creating new discussion pages.
2007-12-16important note about pagestate persistenceJoey Hess
2007-12-12* Change formbuilder hook to not be responsible for displaying a form,Joey Hess
so that more than one plugin can use this hook. I believe this is a safe change, since only passwordauth uses this hook. (If some other plugin already used it, it would have broken passwordauth!)
2007-12-08* Finally implemented a simple per-page data storage mechanism for plugins,Joey Hess
via the %pagestate hash. * Use pagestate in meta to detect potential redir loops.
2007-12-08MAJOR basewiki reorgJoey Hess
Including redir pages for the moved basewiki pages. These will be removed in a future release.
2007-11-17broken linkJoey Hess
2007-11-13* inline: Add timeformat parameter to control how the ctime ofJoey Hess
inlined pages is displayed. Closes: #451019
2007-09-22document will_render betterjoey
2007-09-22* map: Render pages on the way to subpages whose parent pagesjoey
are not included in the map. Include special styling for such pages. * map: Remove common prefixes and don't over-indent. * Add class option to htmllink().
2007-08-28* Support for looking in multiple directories for underlay files.joey
* Plugins can add new directories to the search path with the add_underlay function. * Split out smiley underlay files into a separate underlay, so if the plugin isn't used, the wiki isn't bloated with all those files.
2007-08-26* Add an editcontent hook.joey
2007-08-21fixesjoey
2007-08-21reorg all the pages about rcs backends. Fix all linksjoey
2007-08-17clean upjoey
2007-08-17* Applied Jeremie Koenig's pluggable editpage buttons patch:joey
- add a title to the editpage form; - pass a reference to the list of buttons to the formbuilder_setup hooks, so we can add ours; - relax asumption about the possible submit values (use "Save Page" explicitly); - de-hardcode the submit buttons from the editpage template (This was needed for compatability with a bug in CGI::FormBuilder 3.0401, but ikiwiki already needs a newer version.) * Pass buttons to all other formbuilder_setup hooks too.
2007-08-13improved docs, add a tutorial for writing pluginsjoey
2007-08-13* Fix --libdir to work at the command line.joey
* Plugins can now be written as standalone external programs, which can be written in any language that can do XML::RPC.
2007-08-05* Add sessioncgi hook. joey
2007-08-05* Add rel=tag attribute to tag links, supporting that microformat, as welljoey
as allowing them to be styled specially. Thanks, NicolasLimare.
2007-07-26* Add templatefile hook.joey
* Add pagetemplate plugin, which allows changing the template used for a page. (Not to be confused with the hook of the same name..)
2007-07-17improve urlto docsjoey
2007-07-07web commit by TaylorKillianjoey
2007-06-15fix headerjoey
2007-05-28escape some codejoey
2007-05-17* Add a destpage parameter to the filter hook.joey
* Fix links to smilies generated by the smiley plugin for inlined pages. The old links were often wrong, but often still worked by accident.
2007-05-09* Add the needsbuild hook. Plugins can use this to manipulate which filesjoey
ikiwiki builds when refreshing the wiki.
2007-05-06correct documentation about scan hook (which has never existed)joey
2007-04-27the kind of perl code that can only be written at 4:30 amjoey
(Get a good message when a PageSpec fails due to a negated success by creating success objects with a reason string, which morph into failure objects when negated.)
2007-04-27* Make pagespec_match on failure return a value that is false, but in ajoey
scalar context, evaluates to a reason why the match failed. * Add testpagespec plugin, which might be useful to see why a pagespec isn't matching something.
2007-04-27* pagespec_match() has changed to take named parameters, to better allowjoey
for extended pagespecs. The old calling convention will still work for back-compat for now. * The calling convention for functions in the IkiWiki::PageSpec namespace has changed so they are passed named parameters. * Plugin interface version increased to 2.00 since I don't anticipate any more interface changes before 2.0.