]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/cannot_preview_shortcuts.mdwn
uh oh, this affects link deps
[ikiwiki.git] / doc / bugs / cannot_preview_shortcuts.mdwn
1 Shortcuts such as \[[!google foo]] do not work when previewing pages.
2 --[[JasonBlevins]]
3
4 > Broken during the setup dumping changes, now fixed. --[[Joey]] [[done]]
5
6 >> Just a quick note that this fix interacts with the way the `listdirectives`
7 >> directive gets its list of non-shortcut directives.  At the moment it
8 >> still works, but it relies on the fact that the `listdirectives` `checkconfig`
9 >> hook is called before the `shortcut` `checkconfig` hook.
10 >> -- [[Will]]
11
12 >> The order plugins are loaded is effectively random. (`keys %hooks`).
13 >> So I've made shortcuts pass a 'shortcut' parameter when registering
14 >> them, which listdirectives can grep out of the full list of directives.
15 >> That may not be the best name to give it, especially if other plugins
16 >> generate directives too. Seemed better than forcing shortcut's
17 >> checkconfig hook to run last tho. --[[Joey]]