Added posibility to set the priority colors using the "Template Style settings" page.#33
Open
lpaulsen93 wants to merge 2 commits intodokufreaks:masterfrom
Open
Added posibility to set the priority colors using the "Template Style settings" page.#33lpaulsen93 wants to merge 2 commits intodokufreaks:masterfrom
lpaulsen93 wants to merge 2 commits intodokufreaks:masterfrom
Conversation
… 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"';
Member
Author
|
@splitbrain, @selfthinker, @Klap-in: 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.
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. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The admin can set the configuration option
layouttobuilt-in, this will use the normal layout (as before).If the option is set to
templatethen the priority colors are taken from less-CSS-values:To make this work the following needs to be done manually in the DokuWiki template:
In file
style.ini, add these lines:In template langauge file
en/lang.php, add these lines: