splitbrain/dokuwiki-plugin-bureaucracy — Issue #36: get date strings from date fields
Author: epicycles
Created: 2012-02-10 17:32:38+00:00
State: open

Feature request: The ability to get the year, month and day out of the result of the date picker, so they can be used in template namespace names, and also passed into the template.
The idea would be to have some sort of syntax such as:
%Y(@@My Date@@)
which would extract the year from the date, and could be placed in the destination string and/or the template for replacement.

action template mytemplate mypages:%Y(@@My Date@@):%m(@@My Date@@)%d(@@My Date@@):@@Page Name@@

fieldset "Create Your Page"
date "My Date"
textbox "Page Name"
submit

More generally the ability to parse and convert strings and numbers (i.e., using regexp), assign variables, and set defaults using dynamic variables such as the current date, user, etc. would be extremely handy.