From 22478de2cb9d843e3444e0f39bac850d372887f1 Mon Sep 17 00:00:00 2001 From: privat Date: Tue, 22 Jun 2010 13:30:50 +0000 Subject: --- doc/todo/auto_publish_expire.mdwn | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 doc/todo/auto_publish_expire.mdwn (limited to 'doc/todo/auto_publish_expire.mdwn') diff --git a/doc/todo/auto_publish_expire.mdwn b/doc/todo/auto_publish_expire.mdwn new file mode 100644 index 000000000..6f767a693 --- /dev/null +++ b/doc/todo/auto_publish_expire.mdwn @@ -0,0 +1,10 @@ +It could be nice to mark some page such that: + +* the page is automatically published on some date (i.e. build, linked, syndicated, inlined/mapped, etc.) +* the page is automatically unpublished at some other date (i.e. removed) + +I know that ikiwiki is a wiki compiler so that something has to refresh the wiki periodically to enforce the rules (a cronjob for instance). It seems to me that the calendar plugin rely on something similar. + +The date for publishing and expiring could be set be using some new directives; an alternative could be to expand the [[plugin/meta]] plugin with [[!meta date="auto publish date"]] and [[!meta expires="auto expire date"]]. + +--[[JeanPrivat]] -- cgit v1.2.3 From bbbbf04f76dc5eb6824e5efd5f0ca128e32430ce Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Wed, 23 Jun 2010 13:12:43 -0400 Subject: thoughts --- doc/todo/auto_publish_expire.mdwn | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) (limited to 'doc/todo/auto_publish_expire.mdwn') diff --git a/doc/todo/auto_publish_expire.mdwn b/doc/todo/auto_publish_expire.mdwn index 6f767a693..7a5a17517 100644 --- a/doc/todo/auto_publish_expire.mdwn +++ b/doc/todo/auto_publish_expire.mdwn @@ -8,3 +8,26 @@ I know that ikiwiki is a wiki compiler so that something has to refresh the wiki The date for publishing and expiring could be set be using some new directives; an alternative could be to expand the [[plugin/meta]] plugin with [[!meta date="auto publish date"]] and [[!meta expires="auto expire date"]]. --[[JeanPrivat]] + +> This is a duplicate, and expansion, of +> [[todo/tagging_with_a_publication_date]]. +> There, I suggest using a branch to develop +> prepublication versions of a site, and merge from it +> when the thing is published. +> +> Another approach I've seen used is to keep such pages in a pending/ +> directory, and move them via cron job when their publication time comes. +> But that requires some familiarity with, and access to, cron. +> +> On [[todo/tagging_with_a_publication_date]], I also suggested using meta +> date to set a page's date into the future, +> and adding a pagespec that matches only pages with dates in the past, +> which would allow filtering out the unpublished ones. +> Sounds like you are thinking along these lines, but possibly using +> something other than the page's creation or modification date to do it. +> +> I do think the general problem with that approach is that you have to be +> careful to prevent the unpublished pages from leaking out in any +> inlines, maps, etc. --[[Joey]] + +[[!tag wishlist]] -- cgit v1.2.3