info:dw:todo

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Prochaine révision
Révision précédente
info:dw:todo [2022/05/05 08:17] – créée radeffinfo:dw:todo [2023/08/15 08:33] (Version actuelle) radeff
Ligne 7: Ligne 7:
  
 https://www.dokuwiki.org/plugin:todo https://www.dokuwiki.org/plugin:todo
 +
 +====== Voir aussi ======
 +[[info:dw:searchpattern|+searchpattern]] moteur de recherche avec expression régulière utilisable avec le plugin ToDo
 +
 +====== Astuce pour insérer rapidement un todo ======
 +edit
 +    lib/plugins/todo/script.js
 +add at the end
 +<code js>
 +if (typeof window.toolbar !== 'undefined') {
 +var dateObj = new Date();
 +var month = dateObj.getUTCMonth() + 1; //months from 1-12
 +var day = dateObj.getUTCDate();
 +var year = dateObj.getUTCFullYear();
 +newdate = year + "-" + month + "-" + day;
 +toolbar[toolbar.length] = {
 +type: "format",
 +title: "Todo Button",
 +icon: "../../plugins/todo/todo.png", // located in lib/images/toolbar/
 +key: "6",
 +open: "\n<todo due:"+newdate+" @your_dw_username #radeff:2022-11-15>",
 +sample: "todo",
 +close: "</todo>\n",
 +block: "false"
 +};
 +}
 +</code>
 +
 +result: a nice button {{:info:dw:ksnip_20221027-083543.jpg?direct|}} and when you click on it you'll get:
 +
 +<html>
 +&lt;todo due:2022-10-27 @your_dw_username&gt;&lt;/todo&gt;
 +</html>
 +
 +Adapted from: https://forum.dokuwiki.org/d/20579-new-or-custom-accesskey-to-mark-a-todo-task/2 et https://github.com/leibler/dokuwiki-plugin-todo/issues/146
  • info/dw/todo.1651731434.txt.gz
  • Dernière modification : 2022/05/05 08:17
  • de radeff