Skip to content

Conversation

@lpaulsen93
Copy link
Member

The admin can set the configuration option layout to built-in, this will use the normal layout (as before).

If the option is set to template then the priority colors are taken from less-CSS-values:

__plugin_task_priority1_color__
__plugin_task_priority2_color__
__plugin_task_priority3_color__

To make this work the following needs to be done manually in the DokuWiki template:
In file style.ini, add these lines:

;- Styling settings for task plugin ---------------------------------------
__plugin_task_priority1_color__ = "#fff7e8"
__plugin_task_priority2_color__ = "#fff1d9"
__plugin_task_priority3_color__ = "#ffe9c2"

In template langauge file en/lang.php, add these lines:

$lang['__plugin_task_priority1_color__'] = 'Plugin Task: choose color for priority "medium"';
$lang['__plugin_task_priority2_color__'] = 'Plugin Task: choose color for priority "high"';
$lang['__plugin_task_priority3_color__'] = 'Plugin Task: choose color for priority "critical"';

… settings" page.

The admin can set the configuration option "layout" to "built-in", this will use the normal layout (as before).

If the option is set to "template" then the priority colors are taken from less-CSS-values:
__plugin_task_priority1_color__
__plugin_task_priority2_color__
__plugin_task_priority3_color__

To make this work the following needs to be done manually in the DokuWiki template:
In file "style.ini", add these lines:

;- Styling settings for task plugin ---------------------------------------
__plugin_task_priority1_color__ = "#fff7e8"
__plugin_task_priority2_color__ = "#fff1d9"
__plugin_task_priority3_color__ = "#ffe9c2"

In template langauge file "en/lang.php", add these lines:

$lang['__plugin_task_priority1_color__'] = 'Plugin Task: choose color for priority "medium"';
$lang['__plugin_task_priority2_color__'] = 'Plugin Task: choose color for priority "high"';
$lang['__plugin_task_priority3_color__'] = 'Plugin Task: choose color for priority "critical"';
@lpaulsen93
Copy link
Member Author

@splitbrain, @selfthinker, @Klap-in:
Is there a better way to achieve something like this?

Can a plugin automatically add some lines/settings to the styling page? E.g. with some event handling or a callback etc..

This requires a change in the pagelist plugin.
@lpaulsen93
Copy link
Member Author

I also added a styling option for the tasklist table width. This would only work if pull-request 91 would be added to the pagelist plugin.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant