Following up on discussions in issues such as #2938800: Finalize wording for Toolbar warning message and #2941582: Create a drupal.org documentation page for Umami profile to explain why it shouldn't be used in production sites and elsewhere, the Umami profile should implement hook_help() so as to provide an introduction about what the profile is for.

The toolbar warning message can then link to this help text, and the help text can in turn link to https://www.drupal.org/docs/8/umami-drupal-8-demonstration-installation-... (the drupal.org page that was created in #2941582: Create a drupal.org documentation page for Umami profile to explain why it shouldn't be used in production sites).

This has a couple advantages:

  1. It more closely follows the standard Drupal help pattern (in-site basic help, plus a link to drupal.org for more in-depth discussion).
  2. It allows the help text to be translated.
  3. It allows the help text to be reached via the standard Help system (not just via the toolbar).

To address concerns raised previously about what happens to the toolbar warning when the Help module is turned off, we could just make the warning in the toolbar link directly to the drupal.org documentation page when the Help module is disabled.

As part of this issue, it would also be good to review the text at https://www.drupal.org/docs/8/umami-drupal-8-demonstration-installation-... and make sure it is conveying the message it should be and that it meshes well with the text in hook_help(). For example:

  1. I interpreted this as being the install profile's generic documentation page, but the current text focuses too much on the recommendation not to use it for a real site. That can be part of the page, but shouldn't be the loudest part. I think that could be mostly addressed by deleting the really large "The Umami installation profile is for demo purposes only" sub-headline that is currently there.
  2. Once you've tried Drupal using Umami and want to build your own site, simply reinstall Drupal selecting the Minimal or Standard profiles from the install screen.

    We shouldn't assume Standard or Minimal are the only ones available, since there are contrib profiles too. I would change this to something like "...simply reinstall Drupal and select a different installation profile (such as Standard) from the install screen."

Finally, when we link to this page, the code currently in core links to it via https://www.drupal.org/node/2941833. That's the same page as https://www.drupal.org/docs/8/umami-drupal-8-demonstration-installation-... but a less friendly URL. I suggest using the friendly URL instead.

Issue fork drupal-2942016

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

David_Rothstein created an issue. See original summary.

David_Rothstein’s picture

Status: Active » Needs review
StatusFileSize
new2.86 KB
new39.78 KB

Here's an initial patch. The text might need some work, but it's a start.

I didn't change the link to point to the user-friendly URL mentioned in the issue summary yet, nor did I make any edits to the drupal.org documentation page. I'm still not sure if that page is intended to be a "regular" module help page similar to e.g. https://www.drupal.org/docs/8/core/modules/contact/overview (I think it should be) in which case it will wind up with a different URL anyway once it is moved to the correct page in the drupal.org documentation structure.

Screenshot of Umami help page

markconroy’s picture

Hi David,

Thanks a lot for this. It looks very interesting. We'll discuss it during today's weekly meeting.

Just to mention, the current documentation page we have on Drupal.org is not a generic documentation page; it's a page specifically about the experimental nature of this profile. We don't have any content yet for the more generic "About Umami" type pages.

kaythay’s picture

StatusFileSize
new2.86 KB

A reroll based on the minor language change from another issue at line 71.

john cook’s picture

Status: Needs review » Needs work

Thanks for re-rolling @kaythay.

This is a good way to demonstrate how to implement the help system.

When patched the warning in the admin bar is changed to the help page for the profile instead of being redirected to D.O.

I think that the "What to do when you are ready to build your Drupal website" should be split out with it's own <h> tag. This would make it clearer that it is not a 'use' of Umami.

The &lt;h3&gt;s should be changed to &lt;h2&gt;s. This is a HTML schematic error and could be an a11y issue.

It would be nice to have mode uses for the demo but theses could be added later, along with changing the URL to a proper documentation page.

markconroy’s picture

Does this mean we need to maintain two copies of the text for documentation? One on drupal.org and one in hook_help? Are they currently in sync?

john cook’s picture

@markconroy, the first paragraph in the help text is similar to the first paragraph on Umami: Drupal 8 demonstration installation profile. The rest of the help text is new. So they are not currently in sync.

I see this as a short section to explain a little about Umami, and doesn't change very often. But with a link (or links) to the main documentation, that can change a lot, on D.O.

Version: 8.6.x-dev » 8.7.x-dev

Drupal 8.6.0-alpha1 will be released the week of July 16, 2018, which means new developments and disruptive changes should now be targeted against the 8.7.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.7.x-dev » 8.8.x-dev

Drupal 8.7.0-alpha1 will be released the week of March 11, 2019, which means new developments and disruptive changes should now be targeted against the 8.8.x-dev branch. For more information see the Drupal 8 minor version schedule and the Allowed changes during the Drupal 8 release cycle.

Version: 8.8.x-dev » 8.9.x-dev

Drupal 8.8.0-alpha1 will be released the week of October 14th, 2019, which means new developments and disruptive changes should now be targeted against the 8.9.x-dev branch. (Any changes to 8.9.x will also be committed to 9.0.x in preparation for Drupal 9’s release, but some changes like significant feature additions will be deferred to 9.1.x.). For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 8.9.x-dev » 9.1.x-dev

Drupal 8.9.0-beta1 was released on March 20, 2020. 8.9.x is the final, long-term support (LTS) minor release of Drupal 8, which means new developments and disruptive changes should now be targeted against the 9.1.x-dev branch. For more information see the Drupal 8 and 9 minor version schedule and the Allowed changes during the Drupal 8 and 9 release cycles.

Version: 9.1.x-dev » 9.2.x-dev

Drupal 9.1.0-alpha1 will be released the week of October 19, 2020, which means new developments and disruptive changes should now be targeted for the 9.2.x-dev branch. For more information see the Drupal 9 minor version schedule and the Allowed changes during the Drupal 9 release cycle.

Version: 9.2.x-dev » 9.3.x-dev

Drupal 9.2.0-alpha1 will be released the week of May 3, 2021, which means new developments and disruptive changes should now be targeted for the 9.3.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.3.x-dev » 9.4.x-dev

Drupal 9.3.0-rc1 was released on November 26, 2021, which means new developments and disruptive changes should now be targeted for the 9.4.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.4.x-dev » 9.5.x-dev

Drupal 9.4.0-alpha1 was released on May 6, 2022, which means new developments and disruptive changes should now be targeted for the 9.5.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

Version: 9.5.x-dev » 10.1.x-dev

Drupal 9.5.0-beta2 and Drupal 10.0.0-beta2 were released on September 29, 2022, which means new developments and disruptive changes should now be targeted for the 10.1.x-dev branch. For more information see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

rassoni’s picture

StatusFileSize
new2.94 KB
new3.94 KB

Fixed Custom failed to patch #4 for D10.
Addressed #5 feedback points.

I think that the "What to do when you are ready to build your Drupal website" should be split out with it's own tag. This would make it clearer that it is not a 'use' of Umami.

- Addressed

The <h3>s should be changed to <h2>s. This is a HTML schematic error and could be an a11y issue.

- Addressed

rassoni’s picture

StatusFileSize
new2.94 KB
new611 bytes

Fixed Custom failed to patch #17 for D10.

rassoni’s picture

Status: Needs work » Needs review

Sorry for converting patch into MR due to local CI failed.Please review MR.

Below points addressed:

  • CSpell - demo-umani to correct word demo-umami
  • I think that the "What to do when you are ready to build your Drupal website" should be split out with it's own tag. This would make it clearer that it is not a 'use' of Umami.
  • The <h3>s should be changed to <h2>s. This is a HTML schematic error and could be an a11y issue.
markconroy’s picture

Thanks for working on this @Rassoni. I think it's nearly ready. I've made some small changes to remove the dl elements and use heading elements instead, as I think this is more correct semantically for this use case.

smustgrave’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +Needs Review Queue Initiative
StatusFileSize
new208.58 KB

Going to mark this but wanted to note

If a follow up should be opened to create help_topic for help_hook.

1

Visually this looks weird but think it's because the H3s are close in size to H2s

markconroy’s picture

Visually this looks weird but think it's because the H3s are close in size to H2s

Yes, and if I remember correctly, this was using Claro, not Umami, for the admin theme, so maybe we could file a follow-up with Claro maintainers.

Version: 10.1.x-dev » 11.x-dev

Drupal core is moving towards using a “main” branch. As an interim step, a new 11.x branch has been opened, as Drupal.org infrastructure cannot currently fully support a branch named main. New developments and disruptive changes should now be targeted for the 11.x branch, which currently accepts only minor-version allowed changes. For more information, see the Drupal core minor version schedule and the Allowed changes during the Drupal core release cycle.

catch’s picture

Status: Reviewed & tested by the community » Needs work
Issue tags: +Needs product manager review

Not sure why this is removing experimental from the profile name, I think that needs UX and/or product manager review if we want to do that, it's currently there so people don't think they can install the profile and build a site from it.

Also should this still be hook_help or should it use a help topic at this point? There's not a direct replacement for hook_help() from the new help system yet, so the answer might be 'yes it should still use hook_help()' but wanted to check.

markconroy’s picture

Thanks @catch

This should definitely NOT be removing "Experimental" from the profile name. Let's get that put back in before we move this to RTBC. With that being the case, I'm removing the "Needs product manager review tag".

narendraR made their first commit to this issue’s fork.

narendrar’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new325.17 KB

Applied the MR 3879 and verified the help page see screenshot

screenshot

Uninstalled help module

Verified "This site is intended for demonstration purposes." links to the Drupal page.

Hiding patches for clarity.

longwave’s picture

Status: Reviewed & tested by the community » Fixed

Committed 97ca061 and pushed to 11.x. Thanks!

  • longwave committed 97ca0616 on 11.x
    Issue #2942016 by Rassoni, markconroy, David_Rothstein, kaythay,...
andypost’s picture

It needs follow-up as the permission should be access help pages since 10.1 https://www.drupal.org/node/3344060

andypost’s picture

Status: Fixed » Needs work

andypost’s picture

Status: Needs work » Needs review
smustgrave’s picture

Status: Needs review » Reviewed & tested by the community

Small change seems fine.

  • longwave committed 757fd0fa on 11.x
    Issue #2942016 followup by andypost: Add a hook_help() to the Umami...
longwave’s picture

Status: Reviewed & tested by the community » Fixed

Thank you for spotting that @andypost.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.