Do we need hierarchy/order for help topics?

Created on 11 April 2018, over 6 years ago
Updated 24 August 2023, about 1 year ago

Problem/Motivation

From #2920309-102: Add experimental module for Help Topics β†’ item B... Someone at the DrupalCon conversation about this module asked:

How are related topics ordered? Is there a way for someone to modify that order?

My response: Currently there is just "Is this topic top-level?" and if so, display it alphabetically on admin/help. So, right now, the only thing a site owner can modify is "is the topic top-level".

However, any particular site could conceivably use a Menu to make a hierarchical/ordered list of topics. We could add that as a feature, but given that help topics come from multiple modules/sources, I'm not sure it would make sense or how it would work? Maybe we should just add something to the help topics about making a help system and suggest using regular Menus to make a hierarchy if that is desired? We could presumably also facilitate this by making a Block visibility criterion of "Show or hide this block on all help topic pages"?

This issue is to discuss what we should do, and/or do it.

Proposed resolution

Not sure yet.

Remaining tasks

TBD.

User interface changes

TBD.

API changes

TBD.

Data model changes

TBD.

✨ Feature request
Status

Active

Version

11.0 πŸ”₯

Component
HelpΒ  β†’

Last updated about 1 month ago

No maintainer
Created by

πŸ‡ΊπŸ‡ΈUnited States jhodgdon Spokane, WA, USA

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

  • πŸ‡«πŸ‡·France andypost

    Closing it as there's no reason to bring complexity of hierarchy into documentation

  • Status changed to Active over 1 year ago
  • πŸ‡ΊπŸ‡ΈUnited States Mindewen

    Now that this is close to being officially not an experimental module, sites are starting to want to use it to help with internal documentation. A big hurdle to using it is that the topics currently are all in a flat list on the main Help page, intermingled with all the other core and contrib module help topics. Adding some hierarchy and / or ability to organize the topics and navigate them would be extremely useful and I believe would make this module a lot more likely to be widely adopted.

    This is what the out-of-the-box topics list looks like. As is, it is hard to read and as the list grows will become even more difficult.

    What would be very helpful to have (some of these could likely become separate issues):

    • The ability to customize the Help Topics page a bit
      • Group listed topics by site and/or module
      • Add the help search form to the topics listing page
    • Parent/child relationship between topics
    • Add a topic listing block that:
      • Lists parents, children, and sibling topics
      • Customizable block title?
      • Has its own twig template
  • πŸ‡«πŸ‡·France andypost

    For first stable we decided that having topics searchable is enough, but yes we'll need to deal with hundreds of topics

  • πŸ‡ΊπŸ‡ΈUnited States Amber Himes Matz Portland, OR USA

    Thank you @Mindewen for your perspective and ideas!

    What about enabling Layout Builder integration on for admin/help and provide a default layout which could be overridden by site admins?

    - We could make each HelpSection plugin a block, which could be placed in a layout section.
    - We add a Topic Category block plugin that creates blocks for each topic plugin prefix's first word and lists all topics with that prefix in that block. For example: book.about, book.configuring, book.creating, book.organizing would be listed in a "Topic Category: Book" block/. This effectively creates blocks for each module's topics, that would then be placed in the layout.
    - These blocks (the 3 HelpSections-as-blocks and the Topic Category blocks would be placed in layout sections at admin/help for a default layout that is shipped with core.
    - As contributed modules are enabled, their topics are enabled, a new topic category block is created, and it is either placed automatically in the Topics HelpSection. There would need to be a layout section designated as a catch-all for newly enabled modules. Or something.
    - This default layout could be overridden and blocks re-arranged as desired.
    - The admin-help layout could have a corresponding layout twig template that could also be overridden and customized by the site owner.

  • πŸ‡¬πŸ‡§United Kingdom catch

    I have a client project where we're using this for internal documentation, but because we're only using it for internal documentation I just altered out all of the help topics that aren't provided by our custom module. This was an extremely brute force approach but so far was all we needed.

    We add a Topic Category block plugin that creates blocks for each topic plugin prefix's first word and lists all topics with that prefix in that block. For example: book.about, book.configuring, book.creating, book.organizing would be listed in a "Topic Category: Book" block/. This effectively creates blocks for each module's topics, that would then be placed in the layout.

    So to take book, if I had a contrib module called book_plus, I could do book_plus/help_topics/book.plus.html.twig and it would then show up in the 'Book' section?

    One problem with this would be that system module's help topics currently have 'system' has the prefix, but they would probably need to be moved into different categories.

    I'm wondering if we should add a 'category' to the front matter rather than relying on the prefix? So you could have 'User management' 'Regional and translation' a bit like the system admin sections?

  • πŸ‡«πŸ‡·France andypost

    As we have fields "categorized" it looks like good idea, IIRC there was some discussion to add kinda Tags

Production build 0.71.5 2024