I installed drupal 8 using the minimal install profile. For the admin pages I enabled the seven admin theme, but in the blocks admin screen I cannot find the Primary tabs and Secondary tabs blocks.
-
Minimal install is just brutal. I highly suggest not using it. You're better off doing normal install and then uninstalling what you don't need.– No SssweatCommented Sep 9, 2016 at 8:11
-
Indeed. The tabs seem to be installed by the standard profile– batigolixCommented Sep 9, 2016 at 8:31
-
1Yes and this is just the beginning, you will run into a lot of other stuff with the same problem. Not worth the battle.– No SssweatCommented Sep 9, 2016 at 8:32
-
Issue: drupal.org/project/drupal/issues/2903576– unorCommented Apr 26, 2018 at 2:04
2 Answers
They are available under other names (I think one is called "Tabs") when you used the the minimal installation profile.
But you can import the blocks by entering the code of the files
profiles/standard/config/install/block.block.seven_primary_local_tasks.yml
profiles/standard/config/install/block.block.seven_secondary_local_tasks.yml
into the Single config import located at
admin/config/development/configuration/single/import
(this requires the config management module to be enabled)
I had the same problem, and I've just found the problem (bug).
In Drupal 8 (at least 8.3), there are 4 blocks ('Primary tabs', 'Secondary tabs', 'Page title', and 'Primary admin actions') that are all "install configs" within the standard install profile. In other words, they get created when you install drupal.
But they all have a dependency of the Seven theme. In other words, when you delete Seven, they are deleted. And they don't get re-created when you install Seven, because they aren't install configs of Seven, they're install configs of the Standard install profile.
Try this:
Use Drush or Drupal console or the built-in Configuration Synchronisation to export your current configuration. Then copy the config files...
core/profiles/standard/config/install/block.block.seven_local_actions.yml
core/profiles/standard/config/install/block.block.seven_page_title.yml
core/profiles/standard/config/install/block.block.seven_primary_local_tasks.yml
core/profiles/standard/config/install/block.block.seven_secondary_local_tasks.yml
... into your config folder - which is probably /sites/default/files/config_[hashcode]/sync/
. Then do a config import (using one of those 3 tools above).