From 48b5b7feccb76f44c4eb2b21dbb049940331ef28 Mon Sep 17 00:00:00 2001 From: blipvert Date: Tue, 4 May 2010 15:41:56 +0000 Subject: --- ...ressing_output_of_pages_included_only_for_their_side_effects.mdwn | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 doc/forum/suppressing_output_of_pages_included_only_for_their_side_effects.mdwn (limited to 'doc/forum/suppressing_output_of_pages_included_only_for_their_side_effects.mdwn') diff --git a/doc/forum/suppressing_output_of_pages_included_only_for_their_side_effects.mdwn b/doc/forum/suppressing_output_of_pages_included_only_for_their_side_effects.mdwn new file mode 100644 index 000000000..1a454d37d --- /dev/null +++ b/doc/forum/suppressing_output_of_pages_included_only_for_their_side_effects.mdwn @@ -0,0 +1,5 @@ +In particular, it's kind of annoying that using the sidebar plugin results in the creation of a free-standing sidebar.html (which in the simplest case of course includes a copy of *its own content* as a sidebar in the simplest case). It would be nice if there were a way to tell Ikiwiki to treat a file like sidebar.mdwn as "inline only": allow its content to be inlined but not to render it separately nor allow linking to it. + +In reading through the code and associated docs, it appears that the ideal method is for the file to be removed from the $changed array by plugin's "needsbuild" hook. Either the sidebar plugin could define such a hook, or perhaps a more general solution is the creation of a meta variable or config file regexp that would handle it according to the user's wishes. + +I'm about ready to code up such a change but want to find out if I'm thinking along the right lines. --[[blipvert]] -- cgit v1.2.3 From bd5c5f1f487e21d658dc85badc4e6ee492119cfe Mon Sep 17 00:00:00 2001 From: blipvert Date: Tue, 4 May 2010 15:42:21 +0000 Subject: --- ...uppressing_output_of_pages_included_only_for_their_side_effects.mdwn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'doc/forum/suppressing_output_of_pages_included_only_for_their_side_effects.mdwn') diff --git a/doc/forum/suppressing_output_of_pages_included_only_for_their_side_effects.mdwn b/doc/forum/suppressing_output_of_pages_included_only_for_their_side_effects.mdwn index 1a454d37d..20139b140 100644 --- a/doc/forum/suppressing_output_of_pages_included_only_for_their_side_effects.mdwn +++ b/doc/forum/suppressing_output_of_pages_included_only_for_their_side_effects.mdwn @@ -1,4 +1,4 @@ -In particular, it's kind of annoying that using the sidebar plugin results in the creation of a free-standing sidebar.html (which in the simplest case of course includes a copy of *its own content* as a sidebar in the simplest case). It would be nice if there were a way to tell Ikiwiki to treat a file like sidebar.mdwn as "inline only": allow its content to be inlined but not to render it separately nor allow linking to it. +In particular, it's kind of annoying that using the sidebar plugin results in the creation of a free-standing sidebar.html (which in the simplest case of course includes a copy of *its own content* as a sidebar). It would be nice if there were a way to tell Ikiwiki to treat a file like sidebar.mdwn as "inline only": allow its content to be inlined but not to render it separately nor allow linking to it. In reading through the code and associated docs, it appears that the ideal method is for the file to be removed from the $changed array by plugin's "needsbuild" hook. Either the sidebar plugin could define such a hook, or perhaps a more general solution is the creation of a meta variable or config file regexp that would handle it according to the user's wishes. -- cgit v1.2.3 From ddd7a766e27128f971fceba900d73982c686afbd Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Tue, 4 May 2010 16:46:18 -0400 Subject: response --- ..._output_of_pages_included_only_for_their_side_effects.mdwn | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'doc/forum/suppressing_output_of_pages_included_only_for_their_side_effects.mdwn') diff --git a/doc/forum/suppressing_output_of_pages_included_only_for_their_side_effects.mdwn b/doc/forum/suppressing_output_of_pages_included_only_for_their_side_effects.mdwn index 20139b140..99784cdd2 100644 --- a/doc/forum/suppressing_output_of_pages_included_only_for_their_side_effects.mdwn +++ b/doc/forum/suppressing_output_of_pages_included_only_for_their_side_effects.mdwn @@ -3,3 +3,14 @@ In particular, it's kind of annoying that using the sidebar plugin results in th In reading through the code and associated docs, it appears that the ideal method is for the file to be removed from the $changed array by plugin's "needsbuild" hook. Either the sidebar plugin could define such a hook, or perhaps a more general solution is the creation of a meta variable or config file regexp that would handle it according to the user's wishes. I'm about ready to code up such a change but want to find out if I'm thinking along the right lines. --[[blipvert]] + +> Internal pages should be able to be used for this, as they are used for +> comments. So you'd have +> `sidebar._mdwn`. However, mwdn would need to be changed to register a +> htmlize hook for the `_mdwn` extension for that to really work. +> +> But, if there's no rendered sidebar page, how can users easily edit the page +> in the web interface? In the specific case of the sidebar, It seems +> better to have the page display something different when built standalone +> than when built as the sidebar. +> --[[Joey]] -- cgit v1.2.3