Contents
What is Drupal_ root?
constant DRUPAL_ROOT Defines the root directory of the Drupal installation. This strips two levels of directories off the current directory. Installs Drupal into the Simpletest site.
Where does Drupal store files?
The default Drupal setting for the File system path is sites/default/files. When you run across a text box in Drupal for specifying a directory to store files, generally the root is sites/default/files. It is good to have all files going to the files directory or directories within the files directory.
Where is theme folder in Drupal?
You must place themes in the “themes” folder of your Drupal installation. Note that Drupal core themes such as Bartik and Seven are located in the core/themes folder of your installation. It is good practice to place the contributed themes in a sub folder named “contrib” and your own themes in a folder named “custom”.
How to create a theme in core Drupal?
The first step in creating a theme is to choose a human-readable name for it, and a corresponding machine name. The machine name will be used as the name for files, folders, and functions in your theme, and is used by core Drupal programmatically to refer to your theme.
What’s the difference between a path and a directory?
For completeness sake path is a file or directory named path in the current directory. ./path is a file or directory named path in the current directory, with the directory spelled out. . is the current directory, and path is the name of the file or directory within the current directory.
What should the machine name be in Drupal?
The machine name will be used as the name for files, folders, and functions in your theme, and is used by core Drupal programmatically to refer to your theme. The machine name is usually the human-readable name, converted to lower-case and with underscores instead of spaces.
How to remove stylesheets from a Drupal page?
stylesheets-remove (deprecated) A list of stylesheets from other modules or themes to remove from all pages where the theme is active. Each value must be a full path relative to the docroot to resolve ambiguity when more than one file with the same name exists.