Questions tagged [installation-profile]

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

Filter by
Sorted by
Tagged with
8
votes
2answers
2k 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. ...
8
votes
2answers
893 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 ...
7
votes
2answers
3k 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 ...
6
votes
4answers
2k views

How do I disable a core installation profile?

There is the Allow install profiles to be uninstalled issue that doesn't allow installation profiles to be uninstalled. Is there any way to do this in D7? (With a little more effort if necessary.) ...
6
votes
3answers
4k views

How to install an existing Drupal profile with drush?

Seems like searching for the answer on Google just leads me to how to create make files and profiles. I know how to do that. I also know how to install Drupal with drush. But I want to install one ...
6
votes
2answers
333 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 ...
5
votes
2answers
2k 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?
4
votes
2answers
331 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 ...
4
votes
2answers
2k views

Building a Web App using Drupal

I'm looking at building a Web Application on the Drupal framework. Does anyone know of an existing drupal profile installation that has this viewpoint? For example, I've been building features for ...
4
votes
0answers
63 views

How should the code structure of a distribution look like? [closed]

I'm making a distribution and so far it consists of only one module which holds the whole code. Since D8 is now fully OOP and has autoloader and other stuff I was wondering how should the structure ...
3
votes
3answers
606 views

Is there a way to inherit a Drupal installation profile?

I want to create a Drupal installation profile based on an existing one. Is there a way to inherit the parent profile so I don't need to duplicate modules, dependencies, libraries definitions ?
3
votes
1answer
571 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.
3
votes
1answer
1k views

What are the major differences in building an install profile for Drupal 8? [closed]

There is a good guide for drupal 7 which explains how to build a install profile for drupal 7. I built an install profile using it. But I want to build an install profile using Drupal 8. What changes ...
3
votes
2answers
326 views

Automate the creation of settings.php and files directory

I am using Drush make files and Drupal Installation profiles to streamline the creation of new Drupal websites (which are created in the sites directory of my Mac). Everything is working fine. The ...
3
votes
2answers
320 views

Write drupal config in a profile installation

Here's my problem: I use profiler builder to generate a profile from an installation. But the fact is : the profile only list my modules. What I want my profile to do is also to keep my Drupal ...
3
votes
0answers
471 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....
3
votes
2answers
340 views

Set site name in installation profile

I'm writing a custom installation profile, and most things work, except that I can't get it to change the site name. function myprofile_install() { include_once DRUPAL_ROOT . '/profiles/standard/...
3
votes
1answer
444 views

Adding translation files to install profile?

I am building a Drupal installation profile to make deployment of my site easier, ideally I would like to include the translation files to the install profile as well. But apart from adding the core ...
2
votes
4answers
944 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 ...
2
votes
3answers
367 views

How to install Drupal without interaction via web UI?

Is it possible to confgirue installation profile so it can be installed via web UI as usual but without any interaction, just the progress bar?
2
votes
1answer
196 views

Reusing drupal forms in a profile installation?

I've setup a custom installation profile, and of my installation steps is setting up Google Analytics. I've downloaded the Google Analytics module and enabled it in my site profile. What I'm doing ...
2
votes
1answer
92 views

Is it possible to do a Drush make custom installation profile?

Is is possible to make a selective Drush Make file? For example: The site has 3 modules, with 3 library files. A normal drush make will give me all modules and files. But it is possible to ...
2
votes
2answers
142 views

How to enable insert module in installation profile?

I want to use the insert module for a file field but I can't get it to be enabled programmaticly. Is there a setting like 'insert' => true, or something like that? Is there any documentation about the ...
2
votes
1answer
68 views

Umami content not created

I'm creating a new Drupal 8 site using Lando/Pantheon - and then installing the Umami profile. I've done this before with no problems. This morning when I try, the site is created and it looks like ...
2
votes
1answer
58 views

How to add dev modules to a distribution without getting security updates warnings?

I have made a distribution, which contains some modules which are in dev state. These modules are being by drush make checked out by git. So my drupal-org.make file contains something like: projects[...
2
votes
2answers
27 views

Where does the profile name on the Status Report come from?

When I click on Reports > Status report, the Install profile field says Snrub (snrub-"1.1) (with exactly one double quote). Where is this value defined?
2
votes
1answer
126 views

append settings.php during profile installation

I would like to add lines to my settings.php during my custom installation. I'm using some $conf['...'] to match external content to my drupal and i would like not to do this by modifying directly the ...
2
votes
2answers
261 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 ...
2
votes
1answer
1k 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 ...
2
votes
1answer
39 views

How to prevent installation to run from UI?

I have an installation profile that will be installed purely via Drush/CLI. So I need to prevent anyone to run the installation from web interface. What would be the best approach?
2
votes
1answer
89 views

Creating menu items for views during installation of a custom install profile fails

I have created a custom installation profile in which I enable some default features and modules. In the profile I added an extra task at the end in witch I enable a custom deployment module. That ...
2
votes
2answers
146 views

Profiler builder with custom modules

First things first: happy 2015 to everybody. :-) Now, I am quite new with Drupal distributions and profiles and here is my situation: I have a running site where I have contributed modules and custom ...
2
votes
1answer
1k views

This import is empty and if applied would delete all of your configurations

Customer bought a theme that has Commerce plugin installed with sample data. Anxious to get running and try out the new configuration system, I did what I do prior to Drupal 8.6. Commit everything but ...
2
votes
2answers
2k views

How to create programmatically menu links with just created nodes during installation profile in aegir ?can't get nid!

I am creating a set of nodes in an installation profile. When I try to create menu links for them in the same PROFILE_NAME.install, the links don't get created. I have also tried creating the menus ...
2
votes
1answer
2k views

How to use composer for installation profile?

I have a Drupal 8 installation profile with custom modules and themes and I am wondering how should I use composer so that I can run it and drupal core and other dependencies(like contrib modules) ...
2
votes
0answers
110 views

How to include translations in custom install profile

I'm creating a custom install profile and want to be able to use drush make to quickly set up all files. What is the best way to have drush make download the drupal core translation files into my ...
2
votes
1answer
116 views

Installing a profile inherited from an existing distribution

I would like to build a distribution based on the Standard profile coming with Drupal 7, by inheriting all the features of the parent distro and changing some of them with custom code. The title of ...
2
votes
1answer
136 views

Changing from a Profile to Standard profile after the installation

Its possible from moving from a custom profile or a Distro and move to a the Standards profile ? The reason, I'm asking this is because I build a website with the Recruiter distro. At first everybody ...
2
votes
1answer
77 views

Install profile that automatically inserts data / config settings

I am trying to create a custom installation profile for small internal usage and I'd like to hide certain steps and also implement new functions as a quick-and-dirty way to pre-populate some default ...
2
votes
1answer
344 views

Creating a block with installation profile

To create a block I am currently using this code: $default_theme = variable_get('theme_default', getDefaultTheme()); $blocks = array( array( 'module' => 'user', 'delta' => 'login', ...
1
vote
2answers
581 views

Use default installation profile?

I've written a custom installation profile. When running install.php for the first time to install it, I have to select the installation profile I want to use. I then select mine and run the install ...
1
vote
1answer
460 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
4answers
448 views

How to define settings from an install profile

I am looking for the way to set some settings at the install step. function genius_profile_final() { // Enable default permissions for system roles. $filtered_html_permission = ...
1
vote
5answers
2k views

Hooks called after installation profile is installed?

I'm stuck writing an installation profile. There are certain things that I want to do only after the installation is completed. I analyzed top ten installation profiles and checked the documentation, ...
1
vote
1answer
265 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 ...
1
vote
2answers
116 views

Drush make: “Found makefile: myfile.make. Aborting”

I have a custom drush make file and custom drupal installation file for a new site. Both work fine on my local VM, and the local VM's of the three other developers who have tried it. However, when I ...
1
vote
1answer
463 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
1answer
149 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 ...
1
vote
1answer
50 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 = ...
1
vote
1answer
342 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....