This is sort of a meta-issue that I noticed while reviewing the Umami code (most likely, it needs to be broken up into sub-issues).
The profile and theme are really fantastic! But an overall trend I saw is that the theme hardcodes several assumptions about how the profile will be configured. Some examples:
- It hardcodes the placement of particular fields in the template files, thereby causing the reordering capability of Drupal's "Manage Display" screen to not work correctly. This was noted at https://www.drupal.org/project/drupal/issues/2904243#comment-12346261 and subsequent comments such as https://www.drupal.org/project/drupal/issues/2904243#comment-12408008 previously, but I don't think there's an issue for it.
- In general, the theme has a lot of code designed to work with specifically-named fields. So if a site administrator tried to recreate some aspect of the profile with different field names, the styling would be off.
- There are a number of images shipped with the theme, some of which would make more sense as content so that they could be configured, or be used if the site switches to a different theme.
One result of this is that if, for example, you install the profile and then switch to a different theme (such as Bartik) it looks really bad. I wouldn't expect it to look beautiful, of course, but it would be nice if it were at least roughly functional. (Although in fairness, a lot of these problems might be either Bartik's fault or due to the fact that the themes have different region names so the blocks get switched to unusual places in Bartik.)
More generally, the goal of this profile is an "Out of the Box" demo, but:
- If a lot of custom code in the theme is required to achieve the goals of the profile, then it doesn't really demo what Drupal does "out of the box".
- If it causes some of Drupal's standard admin functionality to not work correctly, then it's not really an effective "demo" of Drupal's content-management and site-building capabilities.
Issue fork drupal-2938911
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
Comment #2
markconroy commentedComment #3
markconroy commentedI'm going to mark this as postponed for now, and let's revisit it asap once we get unhidden. I think this will make a great topic for discussion and hopefully we can iron out all the concerns sooner rather than later. (Others are free to work on it in the meantime if they wish).
I am attaching the 'Umami new feature' tag to this item.
Comment #5
eli-tUnpostponing now we are unhidden.
I think a lot of this has actually been addressed in #2983576: Support display setting changes in Demo Umami's Article and Recipe full page view modes
Suggest re-reviewing @David_Rothstein's concerns in the issue summary against the latest version of Drupal and identifying which still apply.
Comment #6
jacineOn this point specifically, I don’t think this should be Umami's problem. It's not Unami's fault that Bartik's block configuration is located in the Standard profile config, and as I just learned, including Bartik's block config in
config/installas the Standard profile does, without installing Bartik causes dependency issues. Omitting Bartik’s block config, as is happening with the Umami profile (and likely others in contrib) results in it never installing “properly” because Bartik itself does not include its Block config. It resides in the Standard profile.I think relocating the configuration to Bartik is the proper fix: #2642590: Move Bartik block config into the Bartik theme
However, if that doesn’t happen, another option that works in my testing, is to include Bartik’s configuration as “optional”. This gets around the dependency issue, and if after installation, a user decides to install Bartik, the configuration is used, and the blocks are placed properly.
Comment #18
finnsky commentedI've replaced 3 preprocesses with css only
Comment #19
smustgrave commentedBriefly looking at the MR and the title/summary and not super clear what is being fixed, I see it's moving some css around in the MR. So tagged for both.
Comment #20
acbramley commentedI would be inclined to close this as works as designed. As far as I know, Umami is for demonstration purposes only. The profile has "Expiermental" in the name and the description denotes it is to "show off some of Drupal's capabilities".
I think trying to fix everything in the IS could be somewhat wasted effort. I don't think people are expected to install it, modify fields, config, etc and have it continue to work perfectly. Same goes for installing it and then switching themes.
Setting to PMNMI to see if anyone else feels similarly.
Comment #21
finnsky commentedI might need to move what I did into a separate task.
Comment #22
smustgrave commentedWanted to bump this 1 more time
Comment #23
markconroy commentedIt hardcodes the placement of particular fields in the template files, thereby causing the reordering capability of Drupal's "Manage Display" screen to not work correctly. This was noted at https://www.drupal.org/project/drupal/issues/2904243#comment-12346261 and subsequent comments such as https://www.drupal.org/project/drupal/issues/2904243#comment-12408008 previously, but I don't think there's an issue for it.I think this has been fixed. You can use the manage display page settings now for all the view modes. This was a requirement as far as I remember for the profile being unhidden.In general, the theme has a lot of code designed to work with specifically-named fields. So if a site administrator tried to recreate some aspect of the profile with different field names, the styling would be off.I'm not sure how we get around this when developing something as specific as a recipe magazine.There are a number of images shipped with the theme, some of which would make more sense as content so that they could be configured, or be used if the site switches to a different theme.I don't think this is an issue. Looking in the images folder, all we have is icons from the old classy theme, and some SVGs (like the chef's hat for our recipes page).Some of my thoughts on the 3 items in the IS ^