Rename sites directory to be the new config repository
This commit is contained in:
parent
006992b900
commit
433e7eec80
31 changed files with 196 additions and 216 deletions
|
@ -25,7 +25,7 @@ ErrorDocument 404 /index.php
|
||||||
# Set the default handler.
|
# Set the default handler.
|
||||||
DirectoryIndex index.php
|
DirectoryIndex index.php
|
||||||
|
|
||||||
# Override PHP settings. More in sites/default/settings.php
|
# Override PHP settings. More in config/default/settings.php
|
||||||
# but the following cannot be changed at runtime.
|
# but the following cannot be changed at runtime.
|
||||||
|
|
||||||
# PHP 4, Apache 1.
|
# PHP 4, Apache 1.
|
||||||
|
|
|
@ -16,30 +16,30 @@
|
||||||
* website's hostname from left to right and pathname from right to
|
* website's hostname from left to right and pathname from right to
|
||||||
* left. The first configuration file found will be used and any
|
* left. The first configuration file found will be used and any
|
||||||
* others will be ignored. If no other configuration file is found
|
* others will be ignored. If no other configuration file is found
|
||||||
* then the default configuration file at 'sites/default' will be used.
|
* then the default configuration file at 'config/default' will be used.
|
||||||
*
|
*
|
||||||
* For example, for a fictitious site installed at
|
* For example, for a fictitious site installed at
|
||||||
* http://www.drupal.org/mysite/test/, the 'settings.php'
|
* http://www.drupal.org/mysite/test/, the 'settings.php'
|
||||||
* is searched in the following directories:
|
* is searched in the following directories:
|
||||||
*
|
*
|
||||||
* 1. sites/www.drupal.org.mysite.test
|
* 1. config/www.drupal.org.mysite.test
|
||||||
* 2. sites/drupal.org.mysite.test
|
* 2. config/drupal.org.mysite.test
|
||||||
* 3. sites/org.mysite.test
|
* 3. config/org.mysite.test
|
||||||
*
|
*
|
||||||
* 4. sites/www.drupal.org.mysite
|
* 4. config/www.drupal.org.mysite
|
||||||
* 5. sites/drupal.org.mysite
|
* 5. config/drupal.org.mysite
|
||||||
* 6. sites/org.mysite
|
* 6. config/org.mysite
|
||||||
*
|
*
|
||||||
* 7. sites/www.drupal.org
|
* 7. config/www.drupal.org
|
||||||
* 8. sites/drupal.org
|
* 8. config/drupal.org
|
||||||
* 9. sites/org
|
* 9. config/org
|
||||||
*
|
*
|
||||||
* 10. sites/default
|
* 10. config/default
|
||||||
*
|
*
|
||||||
* If you are installing on a non-standard port number, prefix the
|
* If you are installing on a non-standard port number, prefix the
|
||||||
* hostname with that number. For example,
|
* hostname with that number. For example,
|
||||||
* http://www.drupal.org:8080/mysite/test/ could be loaded from
|
* http://www.drupal.org:8080/mysite/test/ could be loaded from
|
||||||
* sites/8080.www.drupal.org.mysite.test/.
|
* config/8080.www.drupal.org.mysite.test/.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/**
|
/**
|
|
@ -323,7 +323,7 @@ function conf_path($require_settings = TRUE, $reset = FALSE) {
|
||||||
return $conf;
|
return $conf;
|
||||||
}
|
}
|
||||||
|
|
||||||
$confdir = 'sites';
|
$confdir = 'config';
|
||||||
$uri = explode('/', $_SERVER['SCRIPT_NAME'] ? $_SERVER['SCRIPT_NAME'] : $_SERVER['SCRIPT_FILENAME']);
|
$uri = explode('/', $_SERVER['SCRIPT_NAME'] ? $_SERVER['SCRIPT_NAME'] : $_SERVER['SCRIPT_FILENAME']);
|
||||||
$server = explode('.', implode('.', array_reverse(explode(':', rtrim($_SERVER['HTTP_HOST'], '.')))));
|
$server = explode('.', implode('.', array_reverse(explode(':', rtrim($_SERVER['HTTP_HOST'], '.')))));
|
||||||
for ($i = count($uri) - 1; $i > 0; $i--) {
|
for ($i = count($uri) - 1; $i > 0; $i--) {
|
||||||
|
@ -491,8 +491,7 @@ function conf_init() {
|
||||||
* in any of these three places:
|
* in any of these three places:
|
||||||
*
|
*
|
||||||
* modules/foo/foo.module
|
* modules/foo/foo.module
|
||||||
* sites/all/modules/foo/foo.module
|
* config/example.com/modules/foo/foo.module
|
||||||
* sites/example.com/modules/foo/foo.module
|
|
||||||
*
|
*
|
||||||
* Calling drupal_get_filename('module', 'foo') will give you one of
|
* Calling drupal_get_filename('module', 'foo') will give you one of
|
||||||
* the above, depending on where the module is located.
|
* the above, depending on where the module is located.
|
||||||
|
|
|
@ -2859,9 +2859,8 @@ function drupal_cron_cleanup() {
|
||||||
* Return an array of system file objects.
|
* Return an array of system file objects.
|
||||||
*
|
*
|
||||||
* Returns an array of file objects of the given type from the site-wide
|
* Returns an array of file objects of the given type from the site-wide
|
||||||
* directory (i.e. modules/), the all-sites directory (i.e.
|
* directory (i.e. modules/), the profiles directory and site-specific directory
|
||||||
* sites/all/modules/), the profiles directory, and site-specific directory
|
* (i.e. config/somesite/modules/). The returned array will be keyed using the
|
||||||
* (i.e. sites/somesite/modules/). The returned array will be keyed using the
|
|
||||||
* key specified (name, basename, filename). Using name or basename will cause
|
* key specified (name, basename, filename). Using name or basename will cause
|
||||||
* site-specific files to be prioritized over similar files in the default
|
* site-specific files to be prioritized over similar files in the default
|
||||||
* directories. That is, if a file with the same name appears in both the
|
* directories. That is, if a file with the same name appears in both the
|
||||||
|
@ -2872,8 +2871,7 @@ function drupal_cron_cleanup() {
|
||||||
* The regular expression of the files to find.
|
* The regular expression of the files to find.
|
||||||
* @param $directory
|
* @param $directory
|
||||||
* The subdirectory name in which the files are found. For example,
|
* The subdirectory name in which the files are found. For example,
|
||||||
* 'modules' will search in both modules/ and
|
* 'modules' will search in modules/.
|
||||||
* sites/somesite/modules/.
|
|
||||||
* @param $key
|
* @param $key
|
||||||
* The key to be passed to file_scan_directory().
|
* The key to be passed to file_scan_directory().
|
||||||
* @param $min_depth
|
* @param $min_depth
|
||||||
|
@ -2883,31 +2881,10 @@ function drupal_cron_cleanup() {
|
||||||
* An array of file objects of the specified type.
|
* An array of file objects of the specified type.
|
||||||
*/
|
*/
|
||||||
function drupal_system_listing($mask, $directory, $key = 'name', $min_depth = 1) {
|
function drupal_system_listing($mask, $directory, $key = 'name', $min_depth = 1) {
|
||||||
global $profile;
|
|
||||||
$config = conf_path();
|
|
||||||
|
|
||||||
// When this function is called during Drupal's initial installation process,
|
|
||||||
// the name of the profile that's about to be installed is stored in the global
|
|
||||||
// $profile variable. At all other times, the standard Drupal systems variable
|
|
||||||
// table contains the name of the current profile, and we can call variable_get()
|
|
||||||
// to determine what one is active.
|
|
||||||
if (!isset($profile)) {
|
|
||||||
$profile = variable_get('install_profile', 'default');
|
|
||||||
}
|
|
||||||
$searchdir = array($directory);
|
$searchdir = array($directory);
|
||||||
$files = array();
|
$files = array();
|
||||||
|
|
||||||
// The 'profiles' directory contains pristine collections of modules and
|
$config = conf_path();
|
||||||
// themes as organized by a distribution. It is pristine in the same way
|
|
||||||
// that /modules is pristine for core; users should avoid changing anything
|
|
||||||
// there in favor of sites/all or sites/<domain> directories.
|
|
||||||
if (file_exists("profiles/$profile/$directory")) {
|
|
||||||
$searchdir[] = "profiles/$profile/$directory";
|
|
||||||
}
|
|
||||||
|
|
||||||
// Always search sites/all/* as well as the global directories
|
|
||||||
$searchdir[] = 'sites/all/'. $directory;
|
|
||||||
|
|
||||||
if (file_exists("$config/$directory")) {
|
if (file_exists("$config/$directory")) {
|
||||||
$searchdir[] = "$config/$directory";
|
$searchdir[] = "$config/$directory";
|
||||||
}
|
}
|
||||||
|
|
|
@ -172,7 +172,7 @@ function drupal_detect_database_types() {
|
||||||
* An array of settings that need to be updated.
|
* An array of settings that need to be updated.
|
||||||
*/
|
*/
|
||||||
function drupal_rewrite_settings($settings = array(), $prefix = '') {
|
function drupal_rewrite_settings($settings = array(), $prefix = '') {
|
||||||
$default_settings = './sites/default/default.settings.php';
|
$default_settings = './config/default/default.settings.php';
|
||||||
$settings_file = './'. conf_path(FALSE, TRUE) .'/'. $prefix .'settings.php';
|
$settings_file = './'. conf_path(FALSE, TRUE) .'/'. $prefix .'settings.php';
|
||||||
|
|
||||||
// Build list of setting names and insert the values into the global namespace.
|
// Build list of setting names and insert the values into the global namespace.
|
||||||
|
|
|
@ -13,19 +13,10 @@ CONTENTS OF THIS FILE
|
||||||
REQUIREMENTS
|
REQUIREMENTS
|
||||||
------------
|
------------
|
||||||
|
|
||||||
Drupal requires a web server, PHP 4 (4.3.5 or greater) or PHP 5
|
SuiteDesk requires a web server, Apache web server is recommended, PHP 5 (better
|
||||||
(http://www.php.net/) and either MySQL (http://www.mysql.com/) or PostgreSQL
|
with version 5.4.45) and MySQL (4.1.1 or greater).
|
||||||
(http://www.postgresql.org/). The Apache web server and MySQL database are
|
|
||||||
recommended; other web server and database combinations such as IIS and
|
|
||||||
PostgreSQL have been tested to a lesser extent. When using MySQL, version 4.1.1
|
|
||||||
or greater is recommended to assure you can safely transfer the database.
|
|
||||||
|
|
||||||
For more detailed information about Drupal requirements, see "Requirements"
|
See http://www.php.net and http://www.mysql.com for more information.
|
||||||
(http://drupal.org/requirements) in the Drupal handbook.
|
|
||||||
|
|
||||||
For detailed information on how to configure a test server environment using
|
|
||||||
a variety of operating systems and web servers, see "Local server setup"
|
|
||||||
(http://drupal.org/node/157602) in the Drupal handbook.
|
|
||||||
|
|
||||||
OPTIONAL TASKS
|
OPTIONAL TASKS
|
||||||
--------------
|
--------------
|
||||||
|
@ -47,7 +38,6 @@ OPTIONAL TASKS
|
||||||
themes), the ability to log in via OpenID, fetching aggregator feeds, or
|
themes), the ability to log in via OpenID, fetching aggregator feeds, or
|
||||||
other network-dependent services.
|
other network-dependent services.
|
||||||
|
|
||||||
|
|
||||||
INSTALLATION
|
INSTALLATION
|
||||||
------------
|
------------
|
||||||
|
|
||||||
|
@ -75,7 +65,7 @@ INSTALLATION
|
||||||
|
|
||||||
2. CREATE THE CONFIGURATION FILE AND GRANT WRITE PERMISSIONS
|
2. CREATE THE CONFIGURATION FILE AND GRANT WRITE PERMISSIONS
|
||||||
|
|
||||||
Drupal comes with a default.settings.php file in the sites/default
|
Drupal comes with a default.settings.php file in the config/default
|
||||||
directory. The installer uses this file as a template to create your
|
directory. The installer uses this file as a template to create your
|
||||||
settings file using the details you provide through the install process.
|
settings file using the details you provide through the install process.
|
||||||
To avoid problems when upgrading, Drupal is not packaged with an actual
|
To avoid problems when upgrading, Drupal is not packaged with an actual
|
||||||
|
@ -84,18 +74,18 @@ INSTALLATION
|
||||||
this name in the same directory). For example, (from the installation
|
this name in the same directory). For example, (from the installation
|
||||||
directory) make a copy of the default.settings.php file with the command:
|
directory) make a copy of the default.settings.php file with the command:
|
||||||
|
|
||||||
cp sites/default/default.settings.php sites/default/settings.php
|
cp config/default/default.settings.php config/default/settings.php
|
||||||
|
|
||||||
Next, give the web server write privileges to the sites/default/settings.php
|
Next, give the web server write privileges to the config/default/settings.php
|
||||||
file with the command (from the installation directory):
|
file with the command (from the installation directory):
|
||||||
|
|
||||||
chmod o+w sites/default/settings.php
|
chmod o+w config/default/settings.php
|
||||||
|
|
||||||
So that the files directory can be created automatically, give the web server
|
So that the files directory can be created automatically, give the web server
|
||||||
write privileges to the sites/default directory with the command (from the
|
write privileges to the config/default directory with the command (from the
|
||||||
installation directory):
|
installation directory):
|
||||||
|
|
||||||
chmod o+w sites/default
|
chmod o+w config/default
|
||||||
|
|
||||||
3. CREATE THE DRUPAL DATABASE
|
3. CREATE THE DRUPAL DATABASE
|
||||||
|
|
||||||
|
@ -111,6 +101,42 @@ INSTALLATION
|
||||||
Take note of the username, password, database name and hostname as you
|
Take note of the username, password, database name and hostname as you
|
||||||
create the database. You will enter these items in the install script.
|
create the database. You will enter these items in the install script.
|
||||||
|
|
||||||
|
This step is only necessary if you don't already have a database set-up (e.g. by
|
||||||
|
your host). In the following examples, 'username' is an example MySQL user which
|
||||||
|
has the CREATE and GRANT privileges. Use the appropriate user name for your
|
||||||
|
system.
|
||||||
|
|
||||||
|
First, you must create a new database for your Drupal site (here, 'databasename'
|
||||||
|
is the name of the new database):
|
||||||
|
|
||||||
|
mysqladmin -u username -p create databasename
|
||||||
|
|
||||||
|
MySQL will prompt for the 'username' database password and then create the
|
||||||
|
initial database files. Next you must login and set the access database rights:
|
||||||
|
|
||||||
|
mysql -u username -p
|
||||||
|
|
||||||
|
Again, you will be asked for the 'username' database password. At the MySQL
|
||||||
|
prompt, enter following command:
|
||||||
|
|
||||||
|
GRANT SELECT, INSERT, UPDATE, DELETE, CREATE, DROP, INDEX, ALTER,
|
||||||
|
CREATE TEMPORARY TABLES ON databasename.*
|
||||||
|
TO 'username'@'localhost' IDENTIFIED BY 'password';
|
||||||
|
|
||||||
|
where
|
||||||
|
|
||||||
|
'databasename' is the name of your database
|
||||||
|
'username@localhost' is the username of your MySQL account
|
||||||
|
'password' is the password required for that username
|
||||||
|
|
||||||
|
Note: Unless your database user has all of the privileges listed above, you will
|
||||||
|
not be able to run Drupal.
|
||||||
|
|
||||||
|
If successful, MySQL will reply with:
|
||||||
|
|
||||||
|
Query OK, 0 rows affected
|
||||||
|
|
||||||
|
|
||||||
4. RUN THE INSTALL SCRIPT
|
4. RUN THE INSTALL SCRIPT
|
||||||
|
|
||||||
To run the install script point your browser to the base URL of your website
|
To run the install script point your browser to the base URL of your website
|
||||||
|
@ -121,27 +147,27 @@ INSTALLATION
|
||||||
site settings.
|
site settings.
|
||||||
|
|
||||||
The install script will attempt to create a files storage directory
|
The install script will attempt to create a files storage directory
|
||||||
in the default location at sites/default/files (the location of the
|
in the default location at config/default/files (the location of the
|
||||||
files directory may be changed after Drupal is installed). In some
|
files directory may be changed after Drupal is installed). In some
|
||||||
cases, you may need to create the directory and modify its permissions
|
cases, you may need to create the directory and modify its permissions
|
||||||
manually. Use the following commands (from the installation directory)
|
manually. Use the following commands (from the installation directory)
|
||||||
to create the files directory and grant the web server write privileges to it:
|
to create the files directory and grant the web server write privileges to it:
|
||||||
|
|
||||||
mkdir sites/default/files
|
mkdir config/default/files
|
||||||
chmod o+w sites/default/files
|
chmod o+w config/default/files
|
||||||
|
|
||||||
The install script will attempt to write-protect the settings.php file and
|
The install script will attempt to write-protect the settings.php file and
|
||||||
the sites/default directory after saving your configuration. However, you
|
the config/default directory after saving your configuration. However, you
|
||||||
may need to manually write-protect them using the commands (from the
|
may need to manually write-protect them using the commands (from the
|
||||||
installation directory):
|
installation directory):
|
||||||
|
|
||||||
chmod a-w sites/default/settings.php
|
chmod a-w config/default/settings.php
|
||||||
chmod a-w sites/default
|
chmod a-w config/default
|
||||||
|
|
||||||
If you make manual changes to the file later, be sure to protect it again
|
If you make manual changes to the file later, be sure to protect it again
|
||||||
after making your modifications. Failure to remove write permissions to that
|
after making your modifications. Failure to remove write permissions to that
|
||||||
file is a security risk. Although the default location for the settings.php
|
file is a security risk. Although the default location for the settings.php
|
||||||
file is at sites/default/settings.php, it may be in another location
|
file is at config/default/settings.php, it may be in another location
|
||||||
if you use the multi-site setup, as explained below.
|
if you use the multi-site setup, as explained below.
|
||||||
|
|
||||||
5. CONFIGURE DRUPAL
|
5. CONFIGURE DRUPAL
|
||||||
|
@ -277,12 +303,12 @@ MULTISITE CONFIGURATION
|
||||||
A single Drupal installation can host several Drupal-powered sites, each with
|
A single Drupal installation can host several Drupal-powered sites, each with
|
||||||
its own individual configuration.
|
its own individual configuration.
|
||||||
|
|
||||||
Additional site configurations are created in subdirectories within the 'sites'
|
Additional site configurations are created in subdirectories within the 'config'
|
||||||
directory. Each subdirectory must have a 'settings.php' file which specifies the
|
directory. Each subdirectory must have a 'settings.php' file which specifies the
|
||||||
configuration settings. The easiest way to create additional sites is to copy
|
configuration settings. The easiest way to create additional sites is to copy
|
||||||
the 'default' directory and modify the 'settings.php' file as appropriate. The
|
the 'default' directory and modify the 'settings.php' file as appropriate. The
|
||||||
new directory name is constructed from the site's URL. The configuration for
|
new directory name is constructed from the site's URL. The configuration for
|
||||||
www.example.com could be in 'sites/example.com/settings.php' (note that 'www.'
|
www.example.com could be in 'config/example.com/settings.php' (note that 'www.'
|
||||||
should be omitted if users can access your site at http://example.com/).
|
should be omitted if users can access your site at http://example.com/).
|
||||||
|
|
||||||
Sites do not have to have a different domain. You can also use subdomains and
|
Sites do not have to have a different domain. You can also use subdomains and
|
||||||
|
@ -290,26 +316,26 @@ subdirectories for Drupal sites. For example, example.com, sub.example.com,
|
||||||
and sub.example.com/site3 can all be defined as independent Drupal sites. The
|
and sub.example.com/site3 can all be defined as independent Drupal sites. The
|
||||||
setup for a configuration such as this would look like the following:
|
setup for a configuration such as this would look like the following:
|
||||||
|
|
||||||
sites/default/settings.php
|
config/default/settings.php
|
||||||
sites/example.com/settings.php
|
config/example.com/settings.php
|
||||||
sites/sub.example.com/settings.php
|
config/sub.example.com/settings.php
|
||||||
sites/sub.example.com.site3/settings.php
|
config/sub.example.com.site3/settings.php
|
||||||
|
|
||||||
When searching for a site configuration (for example www.sub.example.com/site3),
|
When searching for a site configuration (for example www.sub.example.com/site3),
|
||||||
Drupal will search for configuration files in the following order, using the
|
Drupal will search for configuration files in the following order, using the
|
||||||
first configuration it finds:
|
first configuration it finds:
|
||||||
|
|
||||||
sites/www.sub.example.com.site3/settings.php
|
config/www.sub.example.com.site3/settings.php
|
||||||
sites/sub.example.com.site3/settings.php
|
config/sub.example.com.site3/settings.php
|
||||||
sites/example.com.site3/settings.php
|
config/example.com.site3/settings.php
|
||||||
sites/www.sub.example.com/settings.php
|
config/www.sub.example.com/settings.php
|
||||||
sites/sub.example.com/settings.php
|
config/sub.example.com/settings.php
|
||||||
sites/example.com/settings.php
|
config/example.com/settings.php
|
||||||
sites/default/settings.php
|
config/default/settings.php
|
||||||
|
|
||||||
If you are installing on a non-standard port, the port number is treated as the
|
If you are installing on a non-standard port, the port number is treated as the
|
||||||
deepest subdomain. For example: http://www.example.com:8080/ could be loaded
|
deepest subdomain. For example: http://www.example.com:8080/ could be loaded
|
||||||
from sites/8080.www.example.com/. The port number will be removed according to
|
from config/8080.www.example.com/. The port number will be removed according to
|
||||||
the pattern above if no port-specific configuration is found, just like a real
|
the pattern above if no port-specific configuration is found, just like a real
|
||||||
subdomain.
|
subdomain.
|
||||||
|
|
||||||
|
@ -320,7 +346,7 @@ directory within the site configuration directory. For example, if
|
||||||
sub.example.com has a custom theme and a custom module that should not be
|
sub.example.com has a custom theme and a custom module that should not be
|
||||||
accessible to other sites, the setup would look like this:
|
accessible to other sites, the setup would look like this:
|
||||||
|
|
||||||
sites/sub.example.com/:
|
config/sub.example.com/:
|
||||||
settings.php
|
settings.php
|
||||||
themes/custom_theme
|
themes/custom_theme
|
||||||
modules/custom_module
|
modules/custom_module
|
||||||
|
|
|
@ -14,21 +14,21 @@ Prior to upgrading, you should ensure that:
|
||||||
Let's begin!
|
Let's begin!
|
||||||
|
|
||||||
1. Back up your Drupal database and site root directory. Be especially sure
|
1. Back up your Drupal database and site root directory. Be especially sure
|
||||||
to back up your "sites" directory which contains your configuration file,
|
to back up your "config" directory which contains your configuration file,
|
||||||
added modules and themes, and your site's uploaded files. If other files
|
added modules and themes, and your site's uploaded files. If other files
|
||||||
have modifications, such as .htaccess or robots.txt, back those up as well.
|
have modifications, such as .htaccess or robots.txt, back those up as well.
|
||||||
|
|
||||||
Note: for a single site setup, the configuration file is the "settings.php"
|
Note: for a single site setup, the configuration file is the "settings.php"
|
||||||
file located at sites/default/settings.php. The default.settings.php file
|
file located at config/default/settings.php. The default.settings.php file
|
||||||
contains a clean copy for restoration purposes, if required.
|
contains a clean copy for restoration purposes, if required.
|
||||||
|
|
||||||
For multisite configurations, the configuration file is located in a
|
For multisite configurations, the configuration file is located in a
|
||||||
structure like the following:
|
structure like the following:
|
||||||
|
|
||||||
sites/default/settings.php
|
config/default/settings.php
|
||||||
sites/example.com/settings.php
|
config/example.com/settings.php
|
||||||
sites/sub.example.com/settings.php
|
config/sub.example.com/settings.php
|
||||||
sites/sub.example.com.path/settings.php
|
config/sub.example.com.path/settings.php
|
||||||
|
|
||||||
More information on multisite configuration is located in INSTALL.txt.
|
More information on multisite configuration is located in INSTALL.txt.
|
||||||
|
|
||||||
|
@ -52,7 +52,7 @@ Let's begin!
|
||||||
|
|
||||||
7. Unpack the new files and directories into the Drupal installation directory.
|
7. Unpack the new files and directories into the Drupal installation directory.
|
||||||
|
|
||||||
8. Copy your backed up "files" and "sites" directories to the Drupal
|
8. Copy your backed up "files" and "config" directories to the Drupal
|
||||||
installation directory. If other system files such as .htaccess or
|
installation directory. If other system files such as .htaccess or
|
||||||
robots.txt were customized, re-create the modifications in the new
|
robots.txt were customized, re-create the modifications in the new
|
||||||
versions of the files using the backups taken in step #1.
|
versions of the files using the backups taken in step #1.
|
||||||
|
|
|
@ -1047,7 +1047,7 @@ function ckeditor_process_textarea($element) {
|
||||||
foreach ($stylesheets as $name => $path) {
|
foreach ($stylesheets as $name => $path) {
|
||||||
// Checks if less module exists...
|
// Checks if less module exists...
|
||||||
if (strstr($path, '.less') && module_exists('less')) {
|
if (strstr($path, '.less') && module_exists('less')) {
|
||||||
$path = 'sites/default/files/less/' . $path; // append the less file path
|
$path = 'config/default/files/less/' . $path; // append the less file path
|
||||||
$path = str_replace('.less', '', $path); // remove the .less
|
$path = str_replace('.less', '', $path); // remove the .less
|
||||||
}
|
}
|
||||||
if (file_exists($path)) {
|
if (file_exists($path)) {
|
||||||
|
@ -1207,11 +1207,11 @@ function ckeditor_path($local = FALSE, $refresh = FALSE) {
|
||||||
$global_profile = ckeditor_profile_load('CKEditor Global Profile', $refresh);
|
$global_profile = ckeditor_profile_load('CKEditor Global Profile', $refresh);
|
||||||
|
|
||||||
//default: path to ckeditor subdirectory in the ckeditor module directory (starting from the document root)
|
//default: path to ckeditor subdirectory in the ckeditor module directory (starting from the document root)
|
||||||
//e.g. for http://example.com/drupal it will be /drupal/sites/all/modules/ckeditor/ckeditor
|
//e.g. for http://example.com/drupal it will be /drupal/modules/ckeditor/ckeditor
|
||||||
$cke_path = base_path() . $mod_path .'/ckeditor';
|
$cke_path = base_path() . $mod_path .'/ckeditor';
|
||||||
|
|
||||||
//default: path to ckeditor subdirectory in the ckeditor module directory (relative to index.php)
|
//default: path to ckeditor subdirectory in the ckeditor module directory (relative to index.php)
|
||||||
//e.g.: sites/all/modules/ckeditor/ckeditor
|
//e.g.: modules/ckeditor/ckeditor
|
||||||
$cke_local_path = $mod_path .'/ckeditor';
|
$cke_local_path = $mod_path .'/ckeditor';
|
||||||
if ($global_profile) {
|
if ($global_profile) {
|
||||||
$gs = $global_profile->settings;
|
$gs = $global_profile->settings;
|
||||||
|
@ -1279,11 +1279,11 @@ function ckeditor_plugins_path($local = FALSE, $refresh = FALSE) {
|
||||||
$global_profile = ckeditor_profile_load('CKEditor Global Profile', $refresh);
|
$global_profile = ckeditor_profile_load('CKEditor Global Profile', $refresh);
|
||||||
|
|
||||||
//default: path to plugins subdirectory in the ckeditor module directory (starting from the document root)
|
//default: path to plugins subdirectory in the ckeditor module directory (starting from the document root)
|
||||||
//e.g. for http://example.com/drupal it will be /drupal/sites/all/modules/ckeditor/plugins
|
//e.g. for http://example.com/drupal it will be /drupal/modules/ckeditor/plugins
|
||||||
$cke_plugins_path = base_path() . $mod_path .'/plugins';
|
$cke_plugins_path = base_path() . $mod_path .'/plugins';
|
||||||
|
|
||||||
//default: path to plugins subdirectory in the ckeditor module directory (relative to index.php)
|
//default: path to plugins subdirectory in the ckeditor module directory (relative to index.php)
|
||||||
//e.g.: sites/all/modules/ckeditor/plugins
|
//e.g.: modules/ckeditor/plugins
|
||||||
$cke_plugins_local_path = $mod_path .'/plugins';
|
$cke_plugins_local_path = $mod_path .'/plugins';
|
||||||
|
|
||||||
if ($global_profile) {
|
if ($global_profile) {
|
||||||
|
@ -1352,7 +1352,7 @@ function ckfinder_path($refresh = FALSE) {
|
||||||
$global_profile = ckeditor_profile_load('CKEditor Global Profile', $refresh);
|
$global_profile = ckeditor_profile_load('CKEditor Global Profile', $refresh);
|
||||||
|
|
||||||
//default: path to ckeditor subdirectory in the ckeditor module directory (starting from the document root)
|
//default: path to ckeditor subdirectory in the ckeditor module directory (starting from the document root)
|
||||||
//e.g. for http://example.com/drupal it will be /drupal/sites/all/modules/ckeditor/ckeditor
|
//e.g. for http://example.com/drupal it will be /drupal/modules/ckeditor/ckeditor
|
||||||
$ckf_path = $mod_path . '/ckfinder';
|
$ckf_path = $mod_path . '/ckfinder';
|
||||||
if ($global_profile) {
|
if ($global_profile) {
|
||||||
$gs = $global_profile->settings;
|
$gs = $global_profile->settings;
|
||||||
|
|
|
@ -11,7 +11,7 @@ Clean URLs need to be enabled.
|
||||||
|
|
||||||
|
|
||||||
INSTALLATION
|
INSTALLATION
|
||||||
Copy the ckeditor_link folder to your sites/all/modules directory.
|
Copy the ckeditor_link folder to your modules directory.
|
||||||
Go to admin/build/modules and enable the module.
|
Go to admin/build/modules and enable the module.
|
||||||
|
|
||||||
*Set permissions*
|
*Set permissions*
|
||||||
|
|
|
@ -8,7 +8,7 @@ The other modules offer different widgets (selects,..)
|
||||||
|
|
||||||
Installation:
|
Installation:
|
||||||
-------------
|
-------------
|
||||||
1. Install this files into the modules directory of your choice (for example, sites/yoursite.com/modules/content_taxonomy).
|
1. Install this files into the modules directory.
|
||||||
2. Enable content_taxonomy.module in the admin/modules page
|
2. Enable content_taxonomy.module in the admin/modules page
|
||||||
3. Enable wanted widgets in admin/modules (e.g. content_taxonomy_select.module) Note: all require content_taxonomy.module!
|
3. Enable wanted widgets in admin/modules (e.g. content_taxonomy_select.module) Note: all require content_taxonomy.module!
|
||||||
4. Optional enable content_taxonomy_views.module for improved taxonomy-views support
|
4. Optional enable content_taxonomy_views.module for improved taxonomy-views support
|
||||||
|
|
|
@ -28,8 +28,7 @@ accommodate future error codes easily.
|
||||||
Installation:
|
Installation:
|
||||||
-------------
|
-------------
|
||||||
|
|
||||||
1. Install the customerror module directory in the directory where you
|
1. Install the customerror module directory in your modules directory.
|
||||||
keep contributed modules (e.g. sites/all/modules/).
|
|
||||||
|
|
||||||
2. Go to the Modules page
|
2. Go to the Modules page
|
||||||
- Enable the customerror module.
|
- Enable the customerror module.
|
||||||
|
|
|
@ -14,22 +14,22 @@ Date API Installation instructions:
|
||||||
|
|
||||||
You should end up with a structure like:
|
You should end up with a structure like:
|
||||||
|
|
||||||
/drupal/sites/all/modules/date/date_api.info
|
/drupal/modules/date/date_api.info
|
||||||
/drupal/sites/all/modules/date/date_api.install
|
/drupal/modules/date/date_api.install
|
||||||
/drupal/sites/all/modules/date/date_api.module
|
/drupal/modules/date/date_api.module
|
||||||
...
|
...
|
||||||
|
|
||||||
/drupal/sites/all/modules/date/date/date.info
|
/drupal/modules/date/date/date.info
|
||||||
/drupal/sites/all/modules/date/date/date.install
|
/drupal/modules/date/date/date.install
|
||||||
/drupal/sites/all/modules/date/date/date.module
|
/drupal/modules/date/date/date.module
|
||||||
...
|
...
|
||||||
|
|
||||||
/drupal/sites/all/modules/date/date_copy/date_copy.info
|
/drupal/modules/date/date_copy/date_copy.info
|
||||||
/drupal/sites/all/modules/date/date_copy/date_copy.module
|
/drupal/modules/date/date_copy/date_copy.module
|
||||||
...
|
...
|
||||||
|
|
||||||
/drupal/sites/all/modules/date/date_php4/date_php4.inc
|
/drupal/modules/date/date_php4/date_php4.inc
|
||||||
/drupal/sites/all/modules/date/date_php4/date_php4_lib.inc
|
/drupal/modules/date/date_php4/date_php4_lib.inc
|
||||||
...
|
...
|
||||||
|
|
||||||
==================================================================================
|
==================================================================================
|
||||||
|
|
|
@ -13,7 +13,7 @@ Upgrading from Drupal 5
|
||||||
|
|
||||||
2) After ensure FileField 2.3 or higher is on your Drupal 5 site, upgrade your
|
2) After ensure FileField 2.3 or higher is on your Drupal 5 site, upgrade your
|
||||||
site normally to Drupal 6. Download the latest version of FileField for
|
site normally to Drupal 6. Download the latest version of FileField for
|
||||||
Drupal 6 and place it in your sites/all/modules directory.
|
Drupal 6 and place it in your modules directory.
|
||||||
|
|
||||||
3) Run update.php on your Drupal 6 site to upgrade FileField to the latest
|
3) Run update.php on your Drupal 6 site to upgrade FileField to the latest
|
||||||
database schema.
|
database schema.
|
||||||
|
@ -22,8 +22,8 @@ Upgrading from Drupal 5
|
||||||
Upgrading from any previous Drupal 6 version
|
Upgrading from any previous Drupal 6 version
|
||||||
--------------------------------------------
|
--------------------------------------------
|
||||||
|
|
||||||
1) Download the latest version of FileField and the filefield directory in
|
1) Download the latest version of FileField and put the filefield directory in
|
||||||
sites/all/modules.
|
modules.
|
||||||
|
|
||||||
2) Visit update.php on your site and run the update.
|
2) Visit update.php on your site and run the update.
|
||||||
|
|
||||||
|
|
|
@ -22,7 +22,7 @@ See installation procedure below for more information.
|
||||||
INSTALLATION
|
INSTALLATION
|
||||||
------------
|
------------
|
||||||
1. Extract the GeSHi Filter module tarball and place the entire geshifilter
|
1. Extract the GeSHi Filter module tarball and place the entire geshifilter
|
||||||
directory into your Drupal setup (e.g. in sites/all/modules).
|
directory into your Drupal modules directory.
|
||||||
|
|
||||||
2. Download the GeSHi library from
|
2. Download the GeSHi library from
|
||||||
http://sourceforge.net/projects/geshi/files/geshi
|
http://sourceforge.net/projects/geshi/files/geshi
|
||||||
|
@ -30,8 +30,7 @@ INSTALLATION
|
||||||
from the branch 1.1.x (also described as geshi-dev), which is not yet
|
from the branch 1.1.x (also described as geshi-dev), which is not yet
|
||||||
supported by the GeSHi filter module.
|
supported by the GeSHi filter module.
|
||||||
Place the entire extracted 'geshi' folder (which contains geshi.php)
|
Place the entire extracted 'geshi' folder (which contains geshi.php)
|
||||||
in the geshifilter directory (e.g. as sites/all/modules/geshifilter/geshi),
|
in the libraries directory (e.g. as libraries/geshi).
|
||||||
or better, in a libraries directory (e.g. as libraries/geshi).
|
|
||||||
|
|
||||||
3. Enable this module as any other Drupal module by navigating to
|
3. Enable this module as any other Drupal module by navigating to
|
||||||
administer > site building > modules
|
administer > site building > modules
|
||||||
|
|
|
@ -24,14 +24,12 @@ and it's nice to have dom and iconv.
|
||||||
and enable it before enabling the htmlpurifier module so that in
|
and enable it before enabling the htmlpurifier module so that in
|
||||||
the install phase it can find the library.
|
the install phase it can find the library.
|
||||||
|
|
||||||
Extract the library folder to sites/all/libraries or to
|
Extract the library folder to libraries directory.
|
||||||
sites/<site>/libraries for a specific site in a multisite Drupal
|
|
||||||
setup.
|
|
||||||
|
|
||||||
The final setup should be, when making the library and module
|
The final setup should be, when making the library and module
|
||||||
available to all sites:
|
available to all sites:
|
||||||
|
|
||||||
sites/all/libraries/htmlpurifier/
|
libraries/htmlpurifier/
|
||||||
HTMLPurifier
|
HTMLPurifier
|
||||||
HTMLPurifier.autoload.php
|
HTMLPurifier.autoload.php
|
||||||
HTMLPurifier.auto.php
|
HTMLPurifier.auto.php
|
||||||
|
|
|
@ -15,7 +15,7 @@ Updated documentation will be kept on-line at http://drupal.org/node/133977
|
||||||
INSTALLATION:
|
INSTALLATION:
|
||||||
============
|
============
|
||||||
|
|
||||||
1. Create folder 'sites/all/modules/i18n' and copy all the modules files, keeping directory structure, to this folder.
|
1. Create folder 'modules/i18n' and copy all the modules files, keeping directory structure, to this folder.
|
||||||
2. If updating, run the update.php script following the standard procedure for Drupal updates.
|
2. If updating, run the update.php script following the standard procedure for Drupal updates.
|
||||||
|
|
||||||
POST-INSTALLATION/CONFIGURATION:
|
POST-INSTALLATION/CONFIGURATION:
|
||||||
|
|
|
@ -22,8 +22,8 @@ To submit bug reports and feature suggestions, or to track changes:
|
||||||
|
|
||||||
-- INSTALLATION --
|
-- INSTALLATION --
|
||||||
|
|
||||||
* Copy the jquery_ui module directory to your sites/all/modules directory, so it
|
* Copy the jquery_ui module directory to your modules directory, so it
|
||||||
is located in sites/all/modules/jquery_ui/.
|
is located in modules/jquery_ui/.
|
||||||
|
|
||||||
* Download the jQuery UI 1.6 release from:
|
* Download the jQuery UI 1.6 release from:
|
||||||
|
|
||||||
|
|
|
@ -34,7 +34,7 @@ Taxonomy
|
||||||
|
|
||||||
INSTALLING
|
INSTALLING
|
||||||
----------
|
----------
|
||||||
1. To install the module copy the 'lexicon' folder to your sites/all/modules directory.
|
1. To install the module copy the 'lexicon' folder to your modules directory.
|
||||||
|
|
||||||
2. Go to admin/build/modules. Enable the Lexicon module.
|
2. Go to admin/build/modules. Enable the Lexicon module.
|
||||||
Read more about installing modules at http://drupal.org/node/70151
|
Read more about installing modules at http://drupal.org/node/70151
|
||||||
|
|
|
@ -28,7 +28,7 @@ Required:
|
||||||
reported as broken and cannot verified as they should be.
|
reported as broken and cannot verified as they should be.
|
||||||
|
|
||||||
To make sure it always works - it's required to configure the $base_url in
|
To make sure it always works - it's required to configure the $base_url in
|
||||||
the sites settings.php with your public sites URL. Better safe than sorry!
|
the config settings.php with your public sites URL. Better safe than sorry!
|
||||||
|
|
||||||
|
|
||||||
Known issues:
|
Known issues:
|
||||||
|
|
|
@ -43,10 +43,10 @@ CCK field-level permissions hooks. You should test your configuration
|
||||||
carefully or not allow access to the clone functionality for non-admins if
|
carefully or not allow access to the clone functionality for non-admins if
|
||||||
you rely on field-level permissions for important site features.
|
you rely on field-level permissions for important site features.
|
||||||
|
|
||||||
To install this module, copy the folder with all the files to the
|
To install this module, copy the folder with all the files to the modules
|
||||||
/sites/all/modules OR /sites/default/modules directory of your Drupal
|
directory of your Drupal installation and enable it at /admin/build/modules. Two
|
||||||
installation and enable it at /admin/build/modules. Two new permissions are
|
new permissions are available, but there are no changes to the database
|
||||||
available, but there are no changes to the database structure.
|
structure.
|
||||||
|
|
||||||
Note: this module originally derived from code posted by Steve Ringwood
|
Note: this module originally derived from code posted by Steve Ringwood
|
||||||
(nevets@drupal) at http://drupal.org/node/73381#comment-137714
|
(nevets@drupal) at http://drupal.org/node/73381#comment-137714
|
||||||
|
|
|
@ -53,7 +53,7 @@ INSTALLATION
|
||||||
least display a clue as to what's going on.
|
least display a clue as to what's going on.
|
||||||
|
|
||||||
1. As with any other module, uncompress the tar-ball, path_alias_xt.tar.gz, into
|
1. As with any other module, uncompress the tar-ball, path_alias_xt.tar.gz, into
|
||||||
the "sites/all/modules" subdirectory.
|
the "modules" subdirectory.
|
||||||
2. Just in case, if you are installing to a live site, put the site off-line at
|
2. Just in case, if you are installing to a live site, put the site off-line at
|
||||||
Site configuration >> Site maintenance. You will only need about 60 seconds.
|
Site configuration >> Site maintenance. You will only need about 60 seconds.
|
||||||
3. Visit Site building >> Modules to enable the path_alias_xt module. Press
|
3. Visit Site building >> Modules to enable the path_alias_xt module. Press
|
||||||
|
|
|
@ -6,8 +6,7 @@ Pathauto also relies on the Token module, which must be downloaded and
|
||||||
enabled separately.
|
enabled separately.
|
||||||
|
|
||||||
1. Unpack the Pathauto folder and contents in the appropriate modules
|
1. Unpack the Pathauto folder and contents in the appropriate modules
|
||||||
directory of your Drupal installation. This is probably
|
directory of your Drupal installation.
|
||||||
sites/all/modules/
|
|
||||||
2. Enable the Pathauto module in the administration tools.
|
2. Enable the Pathauto module in the administration tools.
|
||||||
3. If you're not using Drupal's default administrative account, make
|
3. If you're not using Drupal's default administrative account, make
|
||||||
sure "administer pathauto" is enabled through access control administration.
|
sure "administer pathauto" is enabled through access control administration.
|
||||||
|
@ -47,4 +46,3 @@ Upgrade to 6.x:
|
||||||
Note that the settings page has moved so that it is more logically grouped with
|
Note that the settings page has moved so that it is more logically grouped with
|
||||||
other URL alias related items under
|
other URL alias related items under
|
||||||
Administer > Site building > URL alias > Automated alias settings
|
Administer > Site building > URL alias > Automated alias settings
|
||||||
|
|
||||||
|
|
|
@ -717,7 +717,6 @@ function _pathauto_get_i18n_possible_files() {
|
||||||
$file = 'i18n-ascii.txt';
|
$file = 'i18n-ascii.txt';
|
||||||
$files = array(
|
$files = array(
|
||||||
conf_path() . '/' . $file,
|
conf_path() . '/' . $file,
|
||||||
"sites/all/$file",
|
|
||||||
drupal_get_path('module', 'pathauto') . '/' . $file,
|
drupal_get_path('module', 'pathauto') . '/' . $file,
|
||||||
);
|
);
|
||||||
// Always prefer $conf['pathauto_i18n_file'] if defined.
|
// Always prefer $conf['pathauto_i18n_file'] if defined.
|
||||||
|
|
|
@ -2,8 +2,7 @@ INSTALLATION
|
||||||
------------
|
------------
|
||||||
|
|
||||||
Decompress the print-n.x-n.n.tar.gz file into your Drupal modules
|
Decompress the print-n.x-n.n.tar.gz file into your Drupal modules
|
||||||
directory (usually sites/all/modules, see http://drupal.org/node/176044 for
|
directory.
|
||||||
more information).
|
|
||||||
|
|
||||||
Enable the print module: Administer > Site building > Modules
|
Enable the print module: Administer > Site building > Modules
|
||||||
(admin/build/modules)
|
(admin/build/modules)
|
||||||
|
@ -18,7 +17,7 @@ their maintainers. DO NOT report bugs in those tools in the print module's
|
||||||
issue queue at Drupal.org.
|
issue queue at Drupal.org.
|
||||||
|
|
||||||
supported paths:
|
supported paths:
|
||||||
* print module lib directory (usually sites/all/modules/print/lib)
|
* print module lib directory (usually modules/print/lib)
|
||||||
* libraries directory (libraries)
|
* libraries directory (libraries)
|
||||||
|
|
||||||
dompdf support:
|
dompdf support:
|
||||||
|
@ -65,8 +64,7 @@ wkhtmltopdf support:
|
||||||
version may require a running X server (static uses patched libs that can
|
version may require a running X server (static uses patched libs that can
|
||||||
work without one).
|
work without one).
|
||||||
2. Place the wkhtmltopdf executable into one of the supported paths.
|
2. Place the wkhtmltopdf executable into one of the supported paths.
|
||||||
(usually sites/all/modules/print/lib). You can also place a symbolic link
|
(usually libraries). You can also place a symbolic link to the executable.
|
||||||
to the executable.
|
|
||||||
3. Check http://code.google.com/p/wkhtmltopdf/ for further information.
|
3. Check http://code.google.com/p/wkhtmltopdf/ for further information.
|
||||||
|
|
||||||
UPDATE
|
UPDATE
|
||||||
|
|
|
@ -28,8 +28,7 @@ check the Drupal web site if you need assistance. If you run into
|
||||||
problems, you should always read the INSTALL.txt that comes with the
|
problems, you should always read the INSTALL.txt that comes with the
|
||||||
Drupal package and read the online documentation.
|
Drupal package and read the online documentation.
|
||||||
|
|
||||||
1. Place the entire module directory into your Drupal directory:
|
1. Place the entire module directory into your Drupal modules directory.
|
||||||
sites/all/modules/
|
|
||||||
|
|
||||||
|
|
||||||
2. Enable the module modules by navigating to:
|
2. Enable the module modules by navigating to:
|
||||||
|
@ -63,5 +62,3 @@ Initial development sponsored by Greenpeace UK <http://www.greenpeace.org.uk>
|
||||||
Drupal 6 update by:
|
Drupal 6 update by:
|
||||||
Hans Nilsson (Blackdog) <http://drupal.org/user/110169>
|
Hans Nilsson (Blackdog) <http://drupal.org/user/110169>
|
||||||
Daniel F. Kudwien (Sun) <http://drupal.org/user/54136>
|
Daniel F. Kudwien (Sun) <http://drupal.org/user/54136>
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -26,8 +26,7 @@ check the Drupal web site if you need assistance. If you run into
|
||||||
problems, you should always read the INSTALL.txt that comes with the
|
problems, you should always read the INSTALL.txt that comes with the
|
||||||
Drupal package and read the online documentation.
|
Drupal package and read the online documentation.
|
||||||
|
|
||||||
1. Place the entire module directory into your Drupal directory:
|
1. Place the entire module directory into your Drupal modules directory.
|
||||||
sites/all/modules/
|
|
||||||
|
|
||||||
|
|
||||||
2. Enable the module modules by navigating to:
|
2. Enable the module modules by navigating to:
|
||||||
|
@ -54,7 +53,3 @@ Write tests
|
||||||
|
|
||||||
********************************************************************
|
********************************************************************
|
||||||
ACKNOWLEDGEMENT
|
ACKNOWLEDGEMENT
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@ Storm module for Drupal 6.x
|
||||||
|
|
||||||
INSTALLATION:
|
INSTALLATION:
|
||||||
|
|
||||||
1) Copy this 'storm' directory into the /sites/all/modules directory of your Drupal installation.
|
1) Copy this 'storm' directory into the modules directory of your Drupal installation.
|
||||||
(Multisite installations may wish to use a different directory - see http://drupal.org/node/53705)
|
(Multisite installations may wish to use a different directory - see http://drupal.org/node/53705)
|
||||||
|
|
||||||
2) Enable Storm (and whatever submodules of Storm that you wish), by visiting http://example.com/admin/build/modules. You will (almost) always need 'Storm', 'Storm Attribute' and 'Storm Organization'.
|
2) Enable Storm (and whatever submodules of Storm that you wish), by visiting http://example.com/admin/build/modules. You will (almost) always need 'Storm', 'Storm Attribute' and 'Storm Organization'.
|
||||||
|
|
|
@ -10,10 +10,7 @@ Developed for http://driverpacks.net/
|
||||||
|
|
||||||
Installation
|
Installation
|
||||||
------------
|
------------
|
||||||
1) Place this module directory in your "modules" folder (this will usually be
|
1) Place this module directory in your "modules" folder.
|
||||||
"sites/all/modules/"). Don't install your module in Drupal core's "modules"
|
|
||||||
folder, since that will cause problems and is bad practice in general. If
|
|
||||||
"sites/all/modules" doesn't exist yet, just create it.
|
|
||||||
|
|
||||||
2) Enable the module.
|
2) Enable the module.
|
||||||
|
|
||||||
|
|
|
@ -7,7 +7,7 @@ or losing files.
|
||||||
|
|
||||||
Installing Views:
|
Installing Views:
|
||||||
|
|
||||||
Place the entirety of this directory in sites/all/modules/views
|
Place the entirety of this directory in modules/views
|
||||||
|
|
||||||
Navigate to administer >> build >> modules. Enable Views and Views UI.
|
Navigate to administer >> build >> modules. Enable Views and Views UI.
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
Views can be stored in the database, which is typical of smaller sites and hobby sites. However, Views may also be stored directly in the code as "default" views, (which simply means they're available by default). Modules often come with views that are specific to the module data, but it's also possible -- and <b>highly</b> recommended -- that sites which have separate "development" and "production" sites export their views into default views in a site-specific module. This makes it very easy to transfer views from dev to production without making database changes.
|
Views can be stored in the database, which is typical of smaller sites and hobby sites. However, Views may also be stored directly in the code as "default" views, (which simply means they're available by default). Modules often come with views that are specific to the module data, but it's also possible -- and <b>highly</b> recommended -- that sites which have separate "development" and "production" sites export their views into default views in a site-specific module. This makes it very easy to transfer views from dev to production without making database changes.
|
||||||
|
|
||||||
<h3>Creating a module</h3>
|
<h3>Creating a module</h3>
|
||||||
First, create a directory in <em>sites/all/modules</em> for your new module. Call it whatever you like, but for this example we will call it <em>mymodule</em>.
|
First, create a directory in <em>modules</em> for your new module. Call it whatever you like, but for this example we will call it <em>mymodule</em>.
|
||||||
|
|
||||||
In this directory, create a <em>mymodule.module</em> file. It can be empty for now, but it should at least contain an opening PHP tag:
|
In this directory, create a <em>mymodule.module</em> file. It can be empty for now, but it should at least contain an opening PHP tag:
|
||||||
<pre><?php
|
<pre><?php
|
||||||
|
@ -102,4 +102,3 @@ Be sure to use the right arguments line or the theme system will not properly tr
|
||||||
If you leave the path blank the template file will be searched for in "./" which is the Drupal install base path.
|
If you leave the path blank the template file will be searched for in "./" which is the Drupal install base path.
|
||||||
</li>
|
</li>
|
||||||
</ol>
|
</ol>
|
||||||
|
|
||||||
|
|
|
@ -53,8 +53,7 @@ To install Watcher, do the following:
|
||||||
2. Download the latest stable version of Watcher from its project
|
2. Download the latest stable version of Watcher from its project
|
||||||
page: http://drupal.org/project/watcher
|
page: http://drupal.org/project/watcher
|
||||||
|
|
||||||
3. Unpack the file you downloaded into sites/all/modules or the
|
3. Unpack the file you downloaded into the modules directory of your site.
|
||||||
modules directory of your site.
|
|
||||||
|
|
||||||
4. Go to Administer » Site building » Modules and enable the module.
|
4. Go to Administer » Site building » Modules and enable the module.
|
||||||
|
|
||||||
|
|
Reference in a new issue