[pmwiki-users] experimental - pagelist conditionals
Roman
romat2 at gmail.com
Wed May 2 03:43:58 CDT 2007
Looks promising. To set up a blog will be much easier with this functionality.
On 5/2/07, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> I've added an extra parameter to the 'date' conditional,
> so that times other than the current time can be tested.
> For example, to check if the current page's name is
> in the month of May 2007, one can write:
>
> (:if date 2007-05-01..2007-05-31 {*$Name} :)
I assume that each parameter accepts any expression. For example, if
page names are in form "News-yyyy-mm-dd", the following condition
should work. Am I right?
(:if date 2007-05-01..2007-05-31 {(substr {*$Name} 5)} :)
> - Display all pages in PITS that were created in 2006
> (:pagelist group=PITS $:Created=?* if="date 2006-01..2006-12 {$:Created}" :)
Really clever.
Roman
More information about the pmwiki-users
mailing list