Moodle

Add Short Name for Categories and add theme option(s) for categories in the navigation bar

Details

  • Affected Branches:
    MOODLE_19_STABLE, MOODLE_20_STABLE

Description

There's been several requests (and hacks) for having the category trail in the breadcrumb trail. Now that categories have a proper edit screen this is potentially much easier. My proposal:

  • Add an additional (required?) field to the categories table - short name. (Need to think about what to do to fill the field initially, or perhaps just use the long one if no short)
  • Add an option in theme settings to extend the breadcrumb. I would have three options, 'off',' top category only', 'all categories'. Or perhaps just the category depth to display.

Activity

Hide
Howard Miller added a comment -

Oh... I'll do it if 'approved'

Show
Howard Miller added a comment - Oh... I'll do it if 'approved'
Hide
Eloy Lafuente (stronk7) added a comment -

My initial +1 is here (I like the off/top/bottom/all switch), addressing this for 2.0 and assigning to MD.

He has the decision on his hands...

Thanks Howard! B-)

Show
Eloy Lafuente (stronk7) added a comment - My initial +1 is here (I like the off/top/bottom/all switch), addressing this for 2.0 and assigning to MD. He has the decision on his hands... Thanks Howard! B-)
Hide
David Scotson added a comment -

Having shortnames for courses would also allow easy url redirects similar to those described by Martin here:

http://moodle.org/mod/forum/discuss.php?d=93295#p412220

e.g.

http://moodle.org/showcategory/demo

or similar could expand to

http://moodle.org/course/category.php?name=demo

and be equivalent to the current:

http://moodle.org/course/category.php?id=2

(assuming 'demo' was the shortname was assigned to the Moodle Demonstrations category)

Show
David Scotson added a comment - Having shortnames for courses would also allow easy url redirects similar to those described by Martin here: http://moodle.org/mod/forum/discuss.php?d=93295#p412220 e.g. http://moodle.org/showcategory/demo or similar could expand to http://moodle.org/course/category.php?name=demo and be equivalent to the current: http://moodle.org/course/category.php?id=2 (assuming 'demo' was the shortname was assigned to the Moodle Demonstrations category)
Hide
Nate Baxley added a comment -

If I can comment, just to emphasis that Eloy added a fourth switch for which category(s) to show. I think that the bottom (most immediate) category is an important option.

Show
Nate Baxley added a comment - If I can comment, just to emphasis that Eloy added a fourth switch for which category(s) to show. I think that the bottom (most immediate) category is an important option.
Hide
Ray Lawrence added a comment -

substituted "breadcrumbs" for navigation bar

Show
Ray Lawrence added a comment - substituted "breadcrumbs" for navigation bar
Hide
Eloy Lafuente (stronk7) added a comment -

NOTE: This issue was assigned to the STABLE backlog without complete triaging process. Marking it as triaged, but with this note for future reference.

Show
Eloy Lafuente (stronk7) added a comment - NOTE: This issue was assigned to the STABLE backlog without complete triaging process. Marking it as triaged, but with this note for future reference.

People

Dates

  • Created:
    Updated: