-
Improvement
-
Resolution: Won't Do
-
Minor
-
None
-
3.1
-
None
While trying to make some user UI pedagogical tutorials/tours (using local_usertour) I find a need to use unique and meaningful classes for most of the navigation (block) nodes.
Trying to use the node unique id attribute is not so helpful, as it is unique (but not so meaningful) to that specific generate page at that time, and I am looking for a class name that is unique on the page but also persistent across courses (for example) like the "grades" node.
Current state, before fix:
<p class="tree_item branch" role="treeitem" aria-expanded="false" aria-owns="578a3c9373182_group" |
tabindex="0" aria-selected="true" id="yui_3_17_2_1_1468677269779_347"> |
<a tabindex="-1" id="label_4_15" href="http://localhost/moodle-org/master/user/index.php?id=2">participants</a></p> |
After fix (see new class "key-participants"):
<p class="tree_item branch key-participants" role="treeitem" aria-expanded="false" aria-owns="578a3c9373182_group" |
tabindex="0" aria-selected="true" id="yui_3_17_2_1_1468677269779_347"> |
<a tabindex="-1" id="label_4_15" href="http://localhost/moodle-org/master/user/index.php?id=2">participants</a></p> |