]> sipb.mit.edu Git - ikiwiki.git/blobdiff - doc/todo/conditional_underlay_files.mdwn
Change Projects link to point to projects DB
[ikiwiki.git] / doc / todo / conditional_underlay_files.mdwn
index 03381943f084e7a3e7bc0216f791f17b94eee8f8..c578bceafacc96ff12f8d2816130ab6715adf61d 100644 (file)
@@ -1,7 +1,7 @@
 I'd like to see some way to include certain files from the underlay only when the wiki has certain plugins enabled.  For example:
 
 * Only include smileys.mdwn and the smileys subdirectory if you enable the [[plugins/smiley]] plugin.
-* Only include openid.mdwn if you enable the [[plugins/openid]] plugin.
+* Exclude openid.mdwn if you disable the [[plugins/openid]] plugin.
 * Include shortcuts.mdwn only if you enable the [[plugins/shortcut]] plugin.
 * Include blog.mdwn only if you don't disable the [[plugins/inline]] plugin.
 * Include favicon.ico only if you enable the [[plugins/favicon]] plugin.
@@ -12,7 +12,7 @@ I can see two good ways to implement this.  Ideally, with
 [[conditional_text_based_on_ikiwiki_features]] available, ikiwiki could
 parse a page like conditionalpages.mdwn, which could contain a set of
 conditional-wrapped page names; that seems like the most elegant and
-ikiwiki-like approach.  Alternatively, [[/ikiwiki.setup]] could contain a
+ikiwiki-like approach.  Alternatively, ikiwiki.setup could contain a
 Perl-generated exclude option by default; that would work, but it seems
 hackish.
 
@@ -21,4 +21,9 @@ hackish.
 > plugins were enabled.
 > 
 > Using the conditionals in a page to control what other pages get built
-> feels complex to me, --[[Joey]]
+> feels complex to me.
+> 
+> Instead, this has been implmented as the `add_underlay()` function.
+> [[done]]
+> --[[Joey]]
+