[pmwiki-users] Publish future posts?

Simon nzskiwi at gmail.com
Sun May 18 01:15:03 CDT 2014


Briefly

You might also find the Reminder
<http://www.pmwiki.org/wiki/Cookbook/Reminder>recipe of use.

For your scenario you could use conditional
markup<http://www.pmwiki.org/wiki/PmWiki/ConditionalMarkup>(not markup
expressions as I said earlier) to decide when to display the
page,
eg
(:if date 2014-05-30.. :)See the [[new page]](:ifend:)
or
(:if date 2014-05-30.. :)(:include NewPage:)(:ifend:)
or you could include the date in a page text variable or in the page name,
e.g.
(:if date {NewPage$:FromDate}.. :)See the [[new page]](:ifend:)
where on NewPage you might have (:FromDate:2014-06-27:)
or if the page name is, say, 2014-07-28NewPage then
(:if date {(substr $name 0 10)}.. :)See the [[new page]](:ifend:)

In the example I have, I want to include a section from a page.
Manually we put in an anchor in the source page of the form
[[#xxyyyy-mm-dd]] (note in PmWiki anchors must start with a character)
In config.php I've added
$FmtPV['$NextTuesday'] = "date('Y-m-d',strtotime('next
tuesday',strtotime('yesterday')))"; // yyyy-mm-dd, today if Tuesday,
otherwise next Tuesday
$FmtPV['$FollowingTuesday'] = "date('Y-m-d',strtotime('+7 days next
tuesday',strtotime('yesterday')))"; // yyyy-mm-dd, next Tuesday if Tuesday,
otherwise following Tuesday
then I just say in the target page
(:include FixtureCard/{$ThisYear}ClubNights#cn{$NextTuesday} :)
(:include FixtureCard/{$ThisYear}ClubNights#cn{$FollowingTuesday} :)

hope this helps


On 18 May 2014 17:51, Ian MacGregor <ardchoille42 at me.com> wrote:

> This sounds interesting. When you have time, could you teach me how to do
> that?
>
>
> On 05/17/2014 10:29 PM, Simon wrote:
>
>> Wll one way you could do it is use the markup expression
>> <http://www.pmwiki.org/wiki/PmWiki/MarkupExpressions> if date to control
>>
>> when pages become visible, I use a similar strategy on this page
>> <http://ttc.org.nz/>.
>>
>>
>>
>> On 18 May 2014 17:12, Ian MacGregor <ardchoille42 at me.com
>> <mailto:ardchoille42 at me.com>> wrote:
>>
>>     I have 20 or so pages that I would like to publish on a
>>     one-page-per-week basis. Rather than manually publishing one page
>>     per week, I would like to be able to create all of the pages at one
>>     time and have the wiki publish them one page per week. How would I
>>     go about doing this? Is there a recipe set up for something like this?
>>     --
>>     Regards,
>>     Rev. Ian MacGregor
>>     http://www.ianmacgregor.net
>>
>>     _________________________________________________
>>     pmwiki-users mailing list
>>     pmwiki-users at pmichaud.com <mailto:pmwiki-users at pmichaud.com>
>>     http://www.pmichaud.com/__mailman/listinfo/pmwiki-users
>>
>>     <http://www.pmichaud.com/mailman/listinfo/pmwiki-users>
>>
>>
>>
>>
>> --
>> ____
>> http://kiwiwiki.co.nz
>>
>
> --
> Regards,
> Rev. Ian MacGregor
> http://www.ianmacgregor.net
>



-- 
____
http://kiwiwiki.co.nz
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.pmichaud.com/pipermail/pmwiki-users/attachments/20140518/dc9e6fb9/attachment.html>


More information about the pmwiki-users mailing list