Questions tagged [installation-profiles]
Installation profiles combine core Drupal, contributed modules, themes, and pre-defined configuration into one download.
125
questions
1
vote
0
answers
145
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
1
answer
74
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
1
answer
43
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
1
answer
434
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
1
answer
483
views
Installation profile glitch
When I construct unattended installation using for instance:
drush site-install my_inst_profile \
--account-mail='[email protected]' \
--account-name='siteadm' \
--account-pass='sitepass' \
--...
1
vote
0
answers
21
views
The site can't display images [closed]
My site can't display any images (logo, article's image) all type of images.
1
vote
1
answer
300
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 ...
4
votes
2
answers
576
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
1
answer
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
1
answer
40
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
1
answer
623
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
1
answer
39
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 ...
8
votes
2
answers
1k
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 ...
9
votes
2
answers
4k
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?
2
votes
4
answers
2k
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 ...
8
votes
2
answers
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. ...
3
votes
2
answers
2k
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
1
answer
448
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
1
answer
257
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
0
answers
107
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: ...
0
votes
1
answer
92
views
How to get correct language code during installation?
I am programmatically creating some content during installation of my profile and I need to set the language for this content, otherwise it will be in English(which my site is not) and there will be ...
2
votes
1
answer
162
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
2
answers
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 ...
1
vote
1
answer
70
views
Drush make SVN repository
I want to add a checkout of an SVN project in the .make file. However, the checkout only concerns a specific folder (new profile added). Has anyone made this before ?
edit : Folder and not file. My ...
2
votes
2
answers
3k
views
How can I install an installation profile?
I have an installation profile with custom modules and themes.
How should I use Composer so that Drupal and the installation profile's dependencies are downloaded and copied in the right directories?
0
votes
1
answer
220
views
Install profile installation fails with "Base table or [error] view not found: 1146 Table 'xxx.system' doesn't exist'" on aegir
I tried to install a custom installation profile on aegir today, the installation failed with this message:
Exception 'PDOException' with message 'SQLSTATE[42S02]: Base table or
view not found: 1146 ...
2
votes
0
answers
126
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 ...
0
votes
1
answer
175
views
How to copy current directory into Drupal profile folder via drush?
I've this yml file in my current folder:
$ cat profile.yml
api: 2
core: 7.x
projects:
drupal7:
type: "copy"
download:
url: "file://."
and 3 empty files (just for now): drupal7.info, ...
2
votes
1
answer
40
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?
1
vote
0
answers
51
views
Change profile makefile download location?
This is similar to Changing Drush make default subdir for install profiles, but with a twist. I'm using a set of nested profiles to inherit default modules, each with a makefile. Unfortunately, this ...
0
votes
2
answers
104
views
Aegir hostmaster custom profile
I created a custom profile with a custom theme for Aegir. I would like to enable that theme by default when a user install hostmaster during the Aegir installation. In the Aegir installation ...
2
votes
1
answer
122
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 ...
1
vote
2
answers
121
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 ...
3
votes
2
answers
472
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/...
6
votes
3
answers
6k
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 ...
2
votes
1
answer
143
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
1
answer
98
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
1
answer
159
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 ...
0
votes
2
answers
764
views
how do i programmatically set the ANONYMOUS USER permissions on a site install profile?
I am having trouble figuring out how to set permissions for users I personally did not programmatically create in my site installation profile. Can someone please help?
I would like to set 'View ...
1
vote
1
answer
37
views
best practice: what directory should the theme be located for a site install profile
I am building a site install profile. Trying to wrap my head around the file structure.
I am creating a Drupal 7 install profile with a sub theme off of omega.
Is it better practice to put the theme ...
0
votes
1
answer
29
views
Force views to write exposed form block info to {block} table during install profile
In a D7 install profile, I am trying to modify the location of a exposed filter block with db_update(), where the view is defined by a module's hook_views_default_views().
At this point it doesn't ...
0
votes
1
answer
194
views
Rebuild permissions needed after installation from profile
Once solved this issue:
How to define settings from an install profile
I would like to skip the Error Message I get on first load of the application:
Message d'erreur
Les permissions d'accès au ...
1
vote
4
answers
473
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 = ...
0
votes
1
answer
53
views
Architecture Guidance: Many off-the-shelf templated sites
I typically work on larger custom projects, but have found I have a lot of requests for projects at a lower price-point. I think I can serve this audience by creating a core Drupal installation ...
2
votes
2
answers
156
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 ...
1
vote
1
answer
344
views
Why would taxonomy_term_save be slow when called from hook_install_tasks?
As part of making a site more easily deployable from scratch, I have generated two PHP scripts to pre-populate taxonomy vocabularies with a list of terms. The scripts are straightforward, creating ...
0
votes
2
answers
213
views
Reverting blocks and other pseudo-exportables in an install hook
We have a medium-sized Drupal 7 site whose configuration is almost entirely stored in code, in a single Features module. In order to permit automated testing and a cleaner development workflow, I'd ...
2
votes
1
answer
78
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 ...
0
votes
2
answers
284
views
Drupal installation profile: menu_link_save() doesn't work for "import" path
In my installation profile, I am trying to add a menu link for the /import path (from feed_import module). menu_link_save() works for all my menu paths with the exception of /import. Anyone have ideas ...
3
votes
3
answers
717
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 ?