aboutsummaryrefslogtreecommitdiff
path: root/doc/forum/Render_more_than_one_dest_page_from_same_source_page.mdwn
diff options
context:
space:
mode:
authorJoey Hess <joey@gnu.kitenet.net>2010-01-22 15:54:00 -0500
committerJoey Hess <joey@gnu.kitenet.net>2010-01-22 15:54:00 -0500
commitd264164673fd64f2e15bd14fa8179d182afd03d7 (patch)
treefdf60eaa2549b9a4a5a20d987f30f1446258ca93 /doc/forum/Render_more_than_one_dest_page_from_same_source_page.mdwn
parentf24ca627ddf147491dfc987c99b7fda9d5a63f95 (diff)
downloadikiwiki-d264164673fd64f2e15bd14fa8179d182afd03d7.tar
ikiwiki-d264164673fd64f2e15bd14fa8179d182afd03d7.tar.gz
response
Diffstat (limited to 'doc/forum/Render_more_than_one_dest_page_from_same_source_page.mdwn')
-rw-r--r--doc/forum/Render_more_than_one_dest_page_from_same_source_page.mdwn20
1 files changed, 20 insertions, 0 deletions
diff --git a/doc/forum/Render_more_than_one_dest_page_from_same_source_page.mdwn b/doc/forum/Render_more_than_one_dest_page_from_same_source_page.mdwn
index 73375938c..e88c23b07 100644
--- a/doc/forum/Render_more_than_one_dest_page_from_same_source_page.mdwn
+++ b/doc/forum/Render_more_than_one_dest_page_from_same_source_page.mdwn
@@ -1,6 +1,17 @@
Is it possible to render more than one destination page from the same source page?
That is, same source, slightly different presentation at the other end, needing a different output file.
+> It's possible to render more than one output _file_ from a given source
+> page. See, for example, the inline plugin's generation of rss files.
+> This is done by calling `will_render()` and using `writefile()` to
+> generate the additional files. Probably in a format hook if you want
+> to generate html files.
+>
+> It's not possible for one source file to represent multiple wiki pages.
+> There is a 1:1 mapping between source filenames and page names. The
+> difference between wiki pages and output files is that you can use
+> wikilinks to link to wiki pages, etc. --[[Joey]]
+
I have two problems that would be solved by being able to do this.
[[!toc startlevel=2]]
@@ -12,6 +23,12 @@ One also wants a foo-print.html page, which uses "page-print.tmpl" rather than "
I want to do this for every page on the site, automatically, so it isn't feasible to do it by hand.
+> Did you know that ikiwiki's `style.css` arranges for pages to display
+> differently when printed out? Things like the Action bar are hidden in
+> printouts (search for `@media print`). So I don't see a reason to need
+> whole files for printing when you can use these style sheet tricks.
+> --[[Joey]]
+
##"en" and "en-us" versions of a page.
My site is in non-US English. However, I want US-English people to find my site when they search for it when they use US spelling on certain search terms (such as "optimise" versus "optimize"). This requires a (crude) US-English version of the site where the spellings are changed automatically, and the LANG is "en-us" rather than "en". (No, don't tell me to use keywords; Google ignores keywords and has for a number of years).
@@ -23,3 +40,6 @@ I can't do this with the "po" plugin, as it considers "en-us" not to be a valid
But I'm not sure how to achieve the result I need.
-- [[KathrynAndersen]]
+
+> Sounds like this could be considered a single page that generates two
+> html files, so could be handled per above. --[[Joey]]