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/10/07 16:21] – [create custom field Term Taxonomy(Category) for article content type] 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 1523: Line 1534:
 </code> </code>
 {{:php:notepaddrupal.jpg|}}   {{:php:notepaddrupal.jpg|}}  
-==== fix Errors ==== +
-  - PDOException: SQLSTATE[HY000]: General error: 2006 MySQL server has gone away: Edit my.ini<code> +
-[mysqld] +
-max_allowed_packet = 16M +
-</code>+
 ==== Update default theme in database ==== ==== Update default theme in database ====
 <code sql> <code sql>
Line 1561: Line 1568:
 === 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**
-**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**+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 1653: 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 1706: 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.1444234887.txt.gz · Last modified: 2022/10/29 16:15 (external edit)