User Tools

Site Tools


php:drupal

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

php:drupal [2015/08/13 05:26] – [Option: Edit directory alias for site in sites/sites.php] adminphp:drupal [2022/10/29 16:15] (current) – external edit 127.0.0.1
Line 1469: Line 1469:
 </code>{{:php:professional_pro_theme.png|}} </code>{{:php:professional_pro_theme.png|}}
 ===== Multisite Configuration ===== ===== Multisite Configuration =====
 +==== Understand about multisite in drupal ====
 +refer: 
 +  * https://www.drupal.org/documentation/install/multi-site
 +If you are running **more than one Drupal site**, you can simplify management and upgrading of your sites by using the **multi-site feature**. Multi-site allows you to share a single Drupal installation including: 
 +  * core code
 +  * contributed modules
 +  * and themes
 +This is particularly useful for managing the code since **each upgrade only needs to be done once**. Each site will have: 
 +  * Its own database 
 +  * and Its own configuration settings
 +so each site will have its own content, settings, enabled modules, and enabled theme. However, the sites are sharing a code base and web document root, so there may be security concerns with multiple administrators
 ==== Steps to create new site ==== ==== Steps to create new site ====
 To create a new site using a shared Drupal code base you must complete the following steps: To create a new site using a shared Drupal code base you must complete the following steps:
Line 1492: Line 1503:
 php scripts/drupal.sh http://www.babies.vn/node php scripts/drupal.sh http://www.babies.vn/node
 </code> </code>
-==== change drupal admin password ====+==== Change drupal admin password ====
   - Step1: Generate password hash<code bash>   - Step1: Generate password hash<code bash>
 php scripts/password-hash.sh 8941362 php scripts/password-hash.sh 8941362
Line 1513: Line 1524:
 php ./scripts/dump-database-d7.sh php ./scripts/dump-database-d7.sh
 </code> </code>
-===== Drupal configs ===== +===== Drupal basic updates ===== 
-==== fix Errors ==== +==== Drupal editor ==== 
-  - PDOExceptionSQLSTATE[HY000]: General error2006 MySQL server has gone awayEdit my.ini<code> +Editor with eclipse: [[php:eclipsepdt#config_to_editor_drupal|Eclipse PDT(PHP Development Tool)]
-[mysqld] + 
-max_allowed_packet = 16M+Editor with notepad++ 
 +  - Step1Go to **Settings -> Style Configurator** 
 +  - Step2: Then select Language **PHP** to edit **User ext** to values below:<code> 
 +module install inc engine  install inc engine theme
 </code> </code>
 +{{:php:notepaddrupal.jpg|}}  
 +
 ==== Update default theme in database ==== ==== Update default theme in database ====
 <code sql> <code sql>
Line 1551: Line 1567:
 |page|Basic page|node_content|node| |page|Basic page|node_content|node|
 === create custom field Term Taxonomy(Category) for article content type === === create custom field Term Taxonomy(Category) for article content type ===
-  * Required: Install module taxonomy +Required: Install module **taxonomy** 
-  * Create custom field Term Taxonomy for article content type+ 
 +Step1: Go to Structure -> Taxonomy to add new **Vocabulary** name article_tags with list terms: Xã Hội, Kinh Tế ...\\ 
 +Step2: Create custom field Term Taxonomy for article content type
 {{:php:customfield.png|}} {{:php:customfield.png|}}
 =>  from label **tags** will auto create below information: =>  from label **tags** will auto create below information:
   * machine name **field_tags**   * machine name **field_tags**
   * talbe **field_data_field_tags**   * talbe **field_data_field_tags**
 +Next you click **Term reference** and select Vocabulary with name **article_tags** for contenty Article
 Below are content of tables from database: Below are content of tables from database:
   * table **field_data_field_tags**   * table **field_data_field_tags**
Line 1598: Line 1617:
   * Click to Check **Use the administration theme when editing or creating content**   * Click to Check **Use the administration theme when editing or creating content**
  
-==== change basic informations(site information(site name, email,slogan,homepage), language, performance,...) in system configuration ====+==== change basic informations(site name, email,slogan,homepage, language, performance) in system configuration ====
 All basic Informations will be updated in **Configuration menu** All basic Informations will be updated in **Configuration menu**
   - change site information(site name, e-mail address, slogan, default front page(homepage), and number of posts per page): Go to **Configuration->System->Site Information**   - change site information(site name, e-mail address, slogan, default front page(homepage), and number of posts per page): Go to **Configuration->System->Site Information**
Line 1643: Line 1662:
   - field--field-name.tpl.php   - field--field-name.tpl.php
   - field--field-type.tpl.php   - field--field-type.tpl.php
-===== drupal custom modules =====+===== Drupal custom modules =====
 ==== drupal custom fields ==== ==== drupal custom fields ====
 === Field (core) and Field UI (core) === === Field (core) and Field UI (core) ===
Line 1696: Line 1715:
   * Clear cache in **configuration->performance**   * Clear cache in **configuration->performance**
   * In view, you go to **Advanced->Information**: click **Rescan template** in view   * In view, you go to **Advanced->Information**: click **Rescan template** in view
-==== page manager and panels ====+==== Page manager and panels ====
 The Page manager and Panels modules used to be one and the same project, originally created as an **alternative to Drupal's block system**. A simplified description of the two modules is: The Page manager and Panels modules used to be one and the same project, originally created as an **alternative to Drupal's block system**. A simplified description of the two modules is:
   * **Page manager** is a tool for **defining new, arbitrary paths** on your Drupal site, and configuring how that page should look and work. It is possible not only to define new paths, but also to **override some of the paths defined by other modules**. One important part of the Page manager functionality is to **collect and send contexts, contextual information that may affect the page**.   * **Page manager** is a tool for **defining new, arbitrary paths** on your Drupal site, and configuring how that page should look and work. It is possible not only to define new paths, but also to **override some of the paths defined by other modules**. One important part of the Page manager functionality is to **collect and send contexts, contextual information that may affect the page**.
   * **Panels** is a tool for **splitting the main content on a Drupal site into several regions** and **defining what content each region should contain**.   * **Panels** is a tool for **splitting the main content on a Drupal site into several regions** and **defining what content each region should contain**.
-==== features module ====+==== Features module ====
 We use features module to export and import features of drupal. Below are step by step to action: We use features module to export and import features of drupal. Below are step by step to action:
   - Step1 **Export**: Go to structure->feature, click tab **Create Feature**   - Step1 **Export**: Go to structure->feature, click tab **Create Feature**
php/drupal.1439443598.txt.gz · Last modified: 2022/10/29 16:15 (external edit)