This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |||
zref:wiki:pluginsyntax:todo [2025/04/22 13:44] – removed - external edit (Unknown date) 127.0.0.1 | zref:wiki:pluginsyntax:todo [2025/04/22 13:44] (current) – ↷ Page moved from wiki:pluginsyntax:todo to zref:wiki:pluginsyntax:todo Alan Shea | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== ToDo Plugin ====== | ||
+ | [[doku> | ||
+ | |||
+ | |description: | ||
+ | |author | ||
+ | |email | ||
+ | |type : Syntax, Action| | ||
+ | |lastupdate : 2023-07-14| | ||
+ | |tags : todo, task, taskmanagement| | ||
+ | |||
+ | * downloadurl: | ||
+ | * sourcerepo : [[https:// | ||
+ | * bugtracker : [[https:// | ||
+ | |||
+ | ---- | ||
+ | |||
+ | Previous authors: [[babbage@digitalbrink.com|Babbage]] | ||
+ | |||
+ | ===== Download and Installation ===== | ||
+ | |||
+ | Search and install the plugin using the [[doku> | ||
+ | |||
+ | ===== Usage and examples ===== | ||
+ | |||
+ | ==== Creating tasks ==== | ||
+ | |||
+ | After installing the plugin, simply enter this information on the page you wish to create the todo list: | ||
+ | |||
+ | < | ||
+ | |||
+ | Each '' | ||
+ | |||
+ | To create a checkbox that is check by default, create your todo like this: | ||
+ | |||
+ | <todo #>Title of todo Action</ | ||
+ | |||
+ | Using bulleted lists ('' | ||
+ | |||
+ | ==== Assign tasks to persons ==== | ||
+ | |||
+ | To assign users use the '' | ||
+ | |||
+ | <todo @leo> | ||
+ | <todo @leo #> | ||
+ | |||
+ | The name of the user can use: | ||
+ | |||
+ | * the following characters: // a-z, A-Z, 0-9, .-_ // | ||
+ | |||
+ | * No (white)spaces are allowed! | ||
+ | So '' | ||
+ | |||
+ | {{http:// | ||
+ | |||
+ | {{http:// | ||
+ | |||
+ | Multiple users can be assigned in one todo (separated by space character). This way a todo can show up in todo lists of different users. | ||
+ | |||
+ | <todo @leo @runout @somebody> | ||
+ | |||
+ | ==== Render username ==== | ||
+ | |||
+ | Render the username as id, full name or not at all, allowed values: '' | ||
+ | |||
+ | <todo @somebody username: | ||
+ | |||
+ | ==== Start and Due date ==== | ||
+ | |||
+ | Set a start and/or due date and get colored output if todo has started or is due | ||
+ | |||
+ | <todo start: | ||
+ | <todo due: | ||
+ | <todo start: | ||
+ | | ||
+ | Colors,... can be set in the style.css file in the plugin directory (lib/ | ||
+ | |||
+ | ==== Show/Hide Start/Due Date ==== | ||
+ | |||
+ | Do (not) show the Start/Due date, allowed values: '' | ||
+ | |||
+ | <todo showdate: | ||
+ | |||
+ | ==== Formatting ==== | ||
+ | |||
+ | Formatting is not allowed inside of the '' | ||
+ | |||
+ | ==== QuickButton ==== | ||
+ | |||
+ | A quickbutton for inserting todo syntax is available in the editor toolbar. You can click the button (which is pictured as a checked-checkbox) or you can use the keyboard shortcut of '' | ||
+ | |||
+ | ===== Lightweight Task Management System - Lists ===== | ||
+ | |||
+ | The new version (since version 2014-03-17) of the todo plugin allows to create an easy to use task management system to collect all todos from all pages on a single page. | ||
+ | |||
+ | ==== First turn off caching ==== | ||
+ | |||
+ | :!: | ||
+ | |||
+ | ~~NOCACHE~~ | ||
+ | |||
+ | ==== Omit Pages from TODOLISTs ==== | ||
+ | |||
+ | If you have pages you never want to include in TODOLISTs, you can put following on these pages: | ||
+ | |||
+ | ~~NOTODO~~ | ||
+ | |||
+ | ==== Display all open and closed todos from all pages ==== | ||
+ | |||
+ | ~~TODOLIST~~ | ||
+ | |||
+ | ==== Counting todos and checked todos ==== | ||
+ | |||
+ | Print a summary of checked todos and total todos like '' | ||
+ | |||
+ | ~~TODOLIST short:yes~~ | ||
+ | |||
+ | ==== Assignments (users to tasks) ==== | ||
+ | |||
+ | Filter the assignments, | ||
+ | |||
+ | ~~TODOLIST assigned: | ||
+ | ~~TODOLIST assigned: | ||
+ | ~~TODOLIST assigned: | ||
+ | ~~TODOLIST assigned: | ||
+ | ~~TODOLIST assigned: | ||
+ | | ||
+ | ==== Show/Hide checkbox ==== | ||
+ | Do (not) show the checkbox, allowed values: '' | ||
+ | |||
+ | ~~TODOLIST checkbox: | ||
+ | | ||
+ | ==== Render username==== | ||
+ | |||
+ | Render the username as id, full name or not at all, allowed values: '' | ||
+ | |||
+ | ~~TODOLIST username: | ||
+ | | ||
+ | ==== Render header ==== | ||
+ | |||
+ | Render the header as pageID, as the first header of the page or not at all, allowed values: '' | ||
+ | |||
+ | ~~TODOLIST header: | ||
+ | |||
+ | ==== Show/Hide Start/Due Date ==== | ||
+ | |||
+ | Do (not) show the Start/Due date, allowed values: '' | ||
+ | |||
+ | ~~TODOLIST showdate: | ||
+ | | ||
+ | ==== Completed Data Filter==== | ||
+ | |||
+ | ===Completion state === | ||
+ | |||
+ | Filter the completion state, allowed values: '' | ||
+ | |||
+ | ~~TODOLIST completed: | ||
+ | ~~TODOLIST completed: | ||
+ | |||
+ | ===Completion Date=== | ||
+ | |||
+ | Filter by date the box was checked. | ||
+ | |||
+ | ~~TODOLIST completedbefore:< | ||
+ | ~~TODOLIST completedafter:< | ||
+ | ~~TODOLIST completedat:< | ||
+ | |||
+ | %%< | ||
+ | |||
+ | Y-m-d like 2014-06-12 | ||
+ | or a value like +10 or -10 or 0 | ||
+ | | ||
+ | invalid values will be substituted with today' | ||
+ | |||
+ | === Completion User (Who checked it) === | ||
+ | |||
+ | Filter by user who checked the box. Comma separated list. | ||
+ | |||
+ | ~~TODOLIST completeduser: | ||
+ | |||
+ | ==== Start/Due Date Filter==== | ||
+ | |||
+ | Filter the TODOLIST by Start/Due Date. Absolute and relative Dates are possible. | ||
+ | |||
+ | ~~TODOLIST startbefore:< | ||
+ | ~~TODOLIST startafter:< | ||
+ | ~~TODOLIST startat:< | ||
+ | ~~TODOLIST duebefore:< | ||
+ | ~~TODOLIST dueafter:< | ||
+ | ~~TODOLIST dueat:< | ||
+ | |||
+ | %%< | ||
+ | |||
+ | Y-m-d like 2014-06-12 | ||
+ | or a value like +10 or -10 or 0 | ||
+ | | ||
+ | invalid values will be substituted with todays date | ||
+ | |||
+ | ==== Combined options ==== | ||
+ | |||
+ | ~~TODOLIST assigned: | ||
+ | ~~TODOLIST assigned: | ||
+ | |||
+ | Some default values for these options can be set in the Configuration Manager | ||
+ | |||
+ | ==== Filter the namespace of the task list ==== | ||
+ | |||
+ | [[https:// | ||
+ | |||
+ | If omitted it uses '' | ||
+ | |||
+ | It can be used with the following parameters: | ||
+ | |||
+ | * '' | ||
+ | * ''/'' | ||
+ | * ''< | ||
+ | * '' | ||
+ | * '' | ||
+ | |||
+ | ~~TODOLIST ns:todo~~ | ||
+ | |||
+ | returns all todo's from the page todo in the root of the wiki, or from the namespaces starting with todo or from the page todo and the namespaces starting with todo. | ||
+ | |||
+ | ~~TODOLIST ns:todo:~~ | ||
+ | |||
+ | returns all todo's from the namespace todo. | ||
+ | |||
+ | ~~TODOLIST ns: | ||
+ | |||
+ | returns all todo's from the namespaces or pages under todo, starting with an '' | ||
+ | |||
+ | ===Example of 'all todos' | ||
+ | |||
+ | {{http:// | ||
+ | |||
+ | ===Example of 'all todos' from many namespaces=== | ||
+ | |||
+ | If you want to display more than one namespace in a single page, you can put a TODOLIST for each : | ||
+ | |||
+ | ~~TODOLIST ns:foo:~~ | ||
+ | ~~TODOLIST ns:bar:~~ | ||
+ | |||
+ | ===== Plugin Settings ===== | ||
+ | |||
+ | ====Allow actions to also link to pages with the same name?==== | ||
+ | |||
+ | Default: Off | ||
+ | |||
+ | This option (when enabled) will allow your actions to also link to a page with the same name. This way, if you have important details about an action, you can place them in this link. | ||
+ | |||
+ | However, Backlinks to the TODO do not currently work. Also, if you use the [[doku> | ||
+ | |||
+ | ====What namespace should your actions be created in (" | ||
+ | |||
+ | Default: [Empty] | ||
+ | |||
+ | This option allows you specify where actions links should be placed. Using " | ||
+ | |||
+ | ====Should the actions have strike-through applied when checked? | ||
+ | |||
+ | Default: On | ||
+ | |||
+ | This option (when enabled) will place a strike-through in the actions that have been completed. When disabled, an action can be checked, but the text will not have strike-through applied. | ||
+ | |||
+ | ===If AllowLinks is disabled, should clicking the actions' | ||
+ | |||
+ | Default: On | ||
+ | |||
+ | When this option is enabled, and the links option is disabled, then clicking on the text of an action will mark that action as being complete. (Added with version 10-14-09) | ||
+ | |||
+ | |||
+ | ===== Development ===== | ||
+ | |||
+ | Please request your features and issues in the tracker at https:// | ||
+ | |||
+ | ==== Known Issues ==== | ||
+ | |||
+ | The %%~~TODOLIST~~%% -functionality finds every ''< | ||
+ | |||
+ | ==== ChangeLog ==== | ||
+ | |||
+ | For the current default download package (see start of this page) one should refer to its GitHub Atom Feed: | ||
+ | |||
+ | {{rss> | ||
+ | |||
+ | === Older / by hand === | ||
+ | |||
+ | Version 05/14/2014 (by [[doku> | ||
+ | < | ||
+ | * :!: This is no part (yet) of the " | ||
+ | * new option '' | ||
+ | * new option '' | ||
+ | * new option '' | ||
+ | * Configuration of default values for above option in the Configuration Manager. | ||
+ | * If AllowLinks is off, render the TodoText as a link to the page where the todo is located | ||
+ | * new option: start and due date. (css) colored output when todo is started or due | ||
+ | * Assign multiple users to a todo | ||
+ | |||
+ | Version 03/17/2014 (by [[doku> | ||
+ | [[http:// | ||
+ | * if a todo is checked or unchecked a descriptive summary (text in todo) will be used for history | ||
+ | * todos can be assigned to email address | ||
+ | * @@MAIL@@ and @@USER@@ matches both for logged in users email address | ||
+ | * @@USER@@ matches logged in users username | ||
+ | |||
+ | Additional changes in 03/17/2014 (by [[doku> | ||
+ | * New listing syntax: '' | ||
+ | * Refactoring of code breaks the compatibility with current version (2013-06-16c) of searchpattern plugin | ||
+ | * **Not fixed issue with searchpatterns**: | ||
+ | * Checks modification dates, to protect against overwriting | ||
+ | * Locking in javascript, so only one request is done simultaneously | ||
+ | * Update javascript, refactor and reformat php | ||
+ | * Some other translatable texts | ||
+ | |||
+ | Version 04/13/2013 (by Christian Marg and [[doku> | ||
+ | * Bugfix script.js chk.attr(' | ||
+ | * Bugfix configuration option Strikethrough | ||
+ | |||
+ | Version 04/11/2013 (by [[doku> | ||
+ | * add user assignment for todos (with @username syntax in todo tag e.g. <todo @leo>do something</ | ||
+ | * add handler method _searchpatternHandler() for dokuwiki searchpattern extension. | ||
+ | * bugfix: encoding html code (security risk < | ||
+ | * bugfix: use correct < | ||
+ | * add description / comments and syntax howto about integration with searchpattern | ||
+ | * check compatibility with dokuwiki release 2012-10-13 "Adora Belle" | ||
+ | * remove getInfo() call because it's done by plugin.info.txt (since dokuwiki 2009-12-25 " | ||
+ | |||
+ | Version 04/05/2013 (by Leo Eibler/ | ||
+ | * migrate to new dokuwiki version (use jQuery.post instead of sack()). | ||
+ | * add german language file. | ||
+ | |||
+ | Version 08/16/2010 (by Babbage): | ||
+ | * Fixed another bug where javascript would not decode the action text properly (replaced unescape with decodeURIComponent). | ||
+ | |||
+ | For a full changelog, please visit http:// | ||
+ | |||
+ | ==== Possible features for a next release ==== | ||
+ | |||
+ | Please post your ** feature requests ** on [[https:// | ||
+ | |||
+ | * < | ||
+ | |||
+ | * < | ||
+ | |||
+ | * < | ||
+ | |||
+ | * < | ||
+ | |||
+ | * < | ||
+ | |||
+ | * < | ||
+ | |||
+ | * make it possible to have more than one todo tag in the same line (e.g. separated by %%\\%%) \\ this might be useful to have more than one todo in a box in a table (workaround to assign a task to multiple users) | ||
+ | |||
+ | * Would be cool to have tags , display single page of tagged tasks, formatting inside task, quick links to the page, and priority of the task!! thanks:! | ||
+ | |||
+ | * < | ||
+ | |||
+ | * When TODO links are turned ON per [[#Allow actions to also link to pages with the same name? | ||
+ | |||
+ | * Thank you for this wonderful plugin. I have one request. In TODOLIST, each todos links to the original page where it's located, Since table header does same action, in my opinion, that links are not needed. Instead, when I click the todo, mark as done would be nice. Also, since it's a link, changing text color doesn' | ||
+ | * This behavior can be changed on the configuration page so that the link points to a page named after the link | ||
+ | |||
+ | * absolutely great plugin! thank you! \\ Would it be possible to allow also dates formatted DD.MM.YYYY (which is very common in Austria ;-)) \\ \\ I'm from Austria too ;) but the only useful order in the date format is YMD - especially for sorting. \\ Things are possible but don't make sense in some way. | ||
+ | |||
+ | * Thank you for this excellent plugin! Would it be possible to augment each to-do item with two more fields: (a) details and (b) action taken? They are useful especially in cases where items are assigned to different people. The fields could be possibly hidden and get displayed only if a spoiler-like button is pressed. The first is needed in order to describe the assignment in detail and (b) should be a description by the person who acted on the assignment. | ||
+ | |||
+ | * Very nice plugin! Started using it only 5 minutes ago and I already love it. I do have 1 question: is it possible to display tasks, without having it in a list-like format (under each other) instead of on 1 lineing to use an actual list or paragraphs? I guess I might be able to achieve this by using %%\\%% \\ Also, it would be nice to allow links inside the todo, now I have to put a link after the todo or place it outside the todo, resulting in a line being half todo half link | ||
+ | |||
+ | * < | ||
+ | |||
+ | * Is it possible to show a list of todos filtered by " | ||
+ | |||
+ | * Change link option from "pages with the same name" to "by Attribute" | ||
+ | * It would be great to have the option to be able to include wiki formatted links within the task so when I have a task to review another page in the wiki or an external URL I can put a formatted link in with a meaningful label rather than the full and often long URL displaying in the task and in the task list | ||
+ | |||
+ | ==== Subpages ==== | ||
+ | |||
+ | * [[doku> | ||
+ | |||
+ | ===== Discussion ===== | ||
+ | Is it possible to see time dedicated between own tasks and colleagues and friends? | ||