]> sipb.mit.edu Git - ikiwiki.git/blob - doc/bugs/inline_page_not_updated_on_removal.mdwn
* Title metadata of inlined pages now shows up in blogs, although not yet
[ikiwiki.git] / doc / bugs / inline_page_not_updated_on_removal.mdwn
1 If a page inlines some other page (such as this page by the bugs page), 
2 and the page is removed (such as by this page being linked to bugs/done),
3 the inlining page is not updated to remove it.
4
5 This only happens if the page is removed from the inlined globlist due to
6 a tag changing; the problem is that once the tag is changed, ikiwiki does
7 not know that the page used to match before.
8
9 To fix, seems I would need to record the actual list of pages that are
10 currently included on an inline page, and do a comparison to see if any
11 have changed. At first I thought, why not just add them to the dependencies
12 explicitly, but that fails because the dependencies globlist fails to match
13 when a negated expression like "!tag(bugs/done)" is matched.
14
15 So, quick fixes aside, what's the generic mechanism here that a plugin can
16 use to let ikiwiki know that a page should be updated if some other page
17 stops matching its dependencies globlist?