Stack Exchange Network

Stack Exchange network consists of 174 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Installation profiles combine core Drupal, contributed modules, themes, and pre-defined configuration into one download.

3
votes
0answers
62 views

How to fix the core.extension.module list when the currently active profile has been added to it by the system?

Following the 8.6 upgrade, several of our sites have developed a strange problem. The currently active profile, let's call it foo_profile, is now also listed as a module in config (core.extension....
1
vote
1answer
14 views

Optional configuration and order of enable modules on profile

I have a bug or a misconfiguration I don't understand. I'm creating a profile to create new web sites with an advance configuration quickly. But I meet a bug during installation with dependencies of ...
1
vote
0answers
68 views

Installation profile missing after upgrade to 8.6.1

I did an upgrade from Drupal 8.5.6 to 8.6.1 and the installation (minimal) profile broke. I noticed that the minimal.install file was removed from the installation profile. I assume this is related to ...
0
votes
0answers
11 views

7: Module Destination for Installation Profile

I'm creating an installation profile for a site, and it's working fine so far. I'd like to use it for existing sites though, and I've found a way to switch profiles using the profile switcher. ...
0
votes
0answers
20 views

Drupal subsite status report not showing correct profile

I have installed a Drupal site with lightning profile and exported all the configuration in to /config/default folder using drush config-export command. After that I have created a subsite and the ...
0
votes
0answers
35 views

system.site.yml not installing correct site settings

performing D8 install through a custom profile, added a system.site.yml like: name: 'Portal Manager' mail: cms-admin@example.com slogan: '' page: 403: '' 404: '' front: /user admin_compact_mode: ...
2
votes
2answers
69 views

Installation profile - Can I create nodes via yml files? What's the best practice for it?

I've created an installation profile for Drupal 8, which creates content types, taxonomies, blocks and stuff I need for new projects via yml files. Now I also want to create some default nodes. I ...
1
vote
0answers
63 views

Drupal install with composer (drupal-project)

I have used option A to install Drupal 8 on server: https://www.drupal.org/docs/develop/using-composer/using-composer-to-manage-drupal-site-dependencies https://github.com/drupal-composer/drupal-...
1
vote
1answer
33 views

How to create options in installation profile/ distribution to enable custom content types?

I have created a custom installation profile/ distribution with exported config files of a site. I have 4 content types in this site from which two will be installed by default but for other two are ...
0
votes
0answers
38 views

Removing module dependency from a Installation Profile/Drupal Distribution

Consider I have a distribution that depends on a FooBar module. I ship this as a package, with all the necessary dependencies including the FooBar module. Now, on the next version of my distribution, ...
1
vote
0answers
87 views

Include a CKEditor Plugin in an Install Profile / Distribution

I am working on an install profile that needs some CKEditor plugins. For example. the template plugin. You can add the module no problem: composer require drupal/wysiwyg_templates Getting the JS ...
0
votes
0answers
303 views

Import content using the “Default Content for D8” module

I am using Default Content for D8 to import content on my site. After Profile installation completed, I enabled my custom default content module with contents sample json for node entity [my_module/...
1
vote
1answer
86 views

How to programmatically disable Global Theme Settings?

I am trying to programmatically disable logo and site name. I have seen some variables for these set in modules/system/system.admin.inc but haven't been able to disable them through my profile ...
-3
votes
1answer
219 views

How do I add default content?

I am looking for a standardized way to add content such as content types into an installation profile. Suppose we exported the JSON for REST Content and want to import them during installation. I ...
0
votes
1answer
36 views

How to add GitHub repositories in Profile Installation

How to add Git repositories to install module while installing Drupal 8 Profile. Is any way to add repositories path in .yml or .profile to module installation? Is this possible?
1
vote
0answers
91 views

Installation profiles: Something is missing

I've been working on trying to write an installation profile for Dtupal 8 for almost a week now. I've followed the docs on Drupal.org: https://www.drupal.org/docs/8/creating-distributions/how-to-write-...
0
votes
1answer
113 views

How to create a Drupal 8 distribution

So I have this Drupal 8 site with its custom theme, some blocks, menus, content types, views and other more stuff. What I am required to do is create a site distribution of this site for drupal.org, ...
1
vote
0answers
312 views

How should I solve a module load order problem in a custom install profile?

I'm building a custom install profile for Drupal 8.4. It uses the new core Media module, and includes custom config files for the entity forms for media's image and file entities. One of those changes ...
0
votes
1answer
58 views

How to rename installation profile name in existing website in D8

I have installed Drupal 8 with a custom subprofile. 'my_custom_profile'. Development of site is almost completed and we have added all the contents in the site. In this stage how can I rename my ...
5
votes
2answers
211 views

Configuration management with different database and websites

We have a central code base (Git repo). From this code base we deployed several websites already. Till now we used features. The websites which are already in production they have a filled database ...
0
votes
2answers
215 views

Recommended way to clone functionality to create a site in Drupal 8

I have a Drupal 8 installation with different content types, paragraphs defined, views and taxonomy vocabularies. Ideally I wanted to be able to export some of these features and import them in ...
3
votes
2answers
1k views

How to enable modules through configuration?

I am trying to enable modules by adding them to core.extension.yml file without getting involved with Features, Configuration Installer or similar modules or profiles. The modules are enabled but ...
-1
votes
2answers
47 views

How to disable anonymous user permissions on site build

Using the configuration below I am trying to have my site install without giving anonymous users permission to "View content". I have no other code that would set this permission, and I have this ...
0
votes
1answer
39 views

Custom install profile fails at creating folders

I have a relatively simple custom installation profile for Drupal 8. All it does is: Ask for the sites domain name and the name of the theme it should scaffold. Use the domain name to create the ...
0
votes
1answer
67 views

Create folders in custom installation profile fails when usind drush site-install

I am working on a custom installation profile, and am using $_SERVER['DOCUMENT_ROOT'] as part of creating custom folders inside <drupal-root>/sites/sitename.tld/. It works as expected when using ...
0
votes
0answers
40 views

Automating site install from profile - settings.php

I'm trying to automate a site deployment/environment generation using profile installation, but I need to change the trusted_host_patterns key in the $settings variable of settings.php. From what I'...
0
votes
1answer
98 views

Setting site name in installation profile

I'm creating an installation profile. Currently, hook_install() contains only this: /** * Implements hook_install(). */ function myprofile_install() { \Drupal::service('config.factory')->...
-1
votes
1answer
42 views

hook_block_info_alter() is not working?

I am creating a custom Drupal profile and put down the following code. function erc_360_min_hook_block_info_alter(&$blocks, $theme, $code_blocks) { $theme = 'erc_generic'; $blocks['user']['...
0
votes
1answer
44 views

How to set Blocks settings in a Drupal Installation Profile?

Is there a way to have my blocks pre-assigned a region and also enabled / disabled in a profile installation? I don't want to go to the structure / block page and assign these blocks individually each ...
1
vote
0answers
112 views

How can I define a custom Contact Form in an Installation profile / distribution?

Question : How can I define a custom Contact Form in an Installation profile / distribution ? Goal : Research : : It's for an installation profile we want to put an contact form in all our Drupal ...
1
vote
1answer
37 views

HTML tags in a block body are not rendred

I'm using Drupal 8. I have created a custom installation profile. Inside the profile profileName.install file, I created the following function: function setupCustomBlocks() { $blockContent = ...
0
votes
1answer
36 views

How do I enable User 1 rights in minimal installation?

I have Drupal 8 minimal installation profile and it does not seem to have provided super user status to the first admin account created during the installation process. How do I enable it?
0
votes
1answer
234 views

Unable to choose an installation profile on a multi-site installation

I installed drupal 8 with the open social installation profile using composer. Now I want to turn this drupal install into a multi-site installation where some of the other sites don't use this ...
1
vote
1answer
342 views

Installation profile glitch

When I construct unattended installation using for instance: drush site-install my_inst_profile \ --account-mail='helpdesk@acme.com' \ --account-name='siteadm' \ --account-pass='sitepass' \ --...
1
vote
0answers
20 views

The site can't display images [closed]

My site can't display any images (logo, article's image) all type of images.
0
votes
1answer
98 views

Change default option of installation profile

I've created a new installation profile name ABCD and it is showing on a "select an installation profile" Page But it shows standard as a default option. How could i make ABCD as default. I added ...
2
votes
1answer
172 views

In custom install profile How to delete the “Footer” menu that core provides by default?

I am writing custom Drupal 8 install profile to be used in our organization. The core creates the "Footer" menu as default system menu listed in menu admin page. I want to delete or disable this ...
0
votes
1answer
14 views

Create defaults for panels to be deployed on install only

We have a mini panel that we use to create a footer area. This is deployed on install of a new multi-site through our custom installation profile. I would like to set default content items in the ...
0
votes
1answer
29 views

Install new site from existing config plus data migration

I need to install a new site on drupal 8 from existing config plus data like content, users. I used config installer to install a new site from existing config. How to make it import content after ...
3
votes
1answer
319 views

Where is the “Add fields” button on content types when using the Minimal installation profile?

I just installed Drupal 8.1.x and used the Minimal installation profile. I added a new content type, but how do I add additional fields? I don't see a button anywhere.
0
votes
1answer
29 views

Accessing values entered in custom fields added to install_configure_form

In my installation profile, I have added a text field to the install_configure_form by including: if (!function_exists("system_form_install_configure_form_alter")) { function ...
7
votes
2answers
511 views

Features versus Configuration Management

I am building a Drupal 8 site and I have done some research whenever I should use Configuration Management or Features to export configuration and include it in my profile. In order to export and ...
5
votes
2answers
1k views

How to switch 'standard' installation profile to 'minimal' in existing site? [closed]

I have built a druapl 8 site with 'Standard' installation profile. How can I switch 'standard' installation profile to 'minimal' in existing site?
1
vote
3answers
349 views

How to know current active installation profile like standard/minimal etc. on existing drupal site?

I have installed minimal installation profile. Is there any entry in database where profile name is mentioned, current active profile. I wanna get the profile name which is get installed in existing ...
7
votes
2answers
1k views

How to set a default theme programmatically

I am trying to build an install profile and I want to have my custom theme enabled and set by default after the installation. Adding in MYPROFILE.info.yml... theme: - my_theme ...is not enough. ...
2
votes
1answer
758 views

D8 Install/uninstall custom module - 'field_storage_config' entity with ID already exists

I created a custom module which essentially is a replica of the Article CT .yml files which come with the D8 standard install-profile. When I installed the custom module, it successfully created ...
1
vote
1answer
247 views

Enable field inside Manage Display from a .yml file

When I create a field field.field.node.custom.body.yml in my custom module with the following code: langcode: en status: true dependencies: config: - field.storage.node.body - node.type....
1
vote
1answer
141 views

Drupal 8 installation (bash) script. I want the latest stable v8 version each time. But how?

My Drupal 7 script utilised a make file which specified '7.x' as the Drupal version to install, drush make would fetch the correct core files. My current Drupal 8 script uses git to clone and then ...
1
vote
0answers
66 views

Libraries not found when installing from custom profile

I've created a custom Drupal installation profile which has the epsacrop project included in the makefile and as a requirement in the .info file. Also, the epsascrop project requires two libraries: ...
1
vote
0answers
470 views

How do I enable PHP extensions on CentOS to finally finish installing/configuring Drupal?

I am trying to install Drupal 8.0.5 (a standard profile) on Apache 2.4.6 on CentOS 7, with PHP 5.6.19. But in the GUI, I get a problem on the requirements page. It says "PHP extensions disabled. ...