ข้ามไปยังเนื้อหาหลัก
หน้าแรก
DrupalThailand

Main navigation

  • หน้าแรก
  • ฟอรั่ม
  • ประกาศงาน
  • บทความ
  • กิจกรรม
User account menu
  • เข้าสู่ระบบ

การแสดงเส้นทาง

  1. หน้าแรก

บทความ

By admin, 2 พฤศจิกายน, 2021

Drupal 8 End of Life

Drupal 8 End of Life

Drupal เวอร์ชันล่าสุดคือเวอร์ชัน 9 ซึ่งเปิดตัวในปี 2020 ซึ่งหมายความว่า
Drupal เวอร์ชันก่อนหน้าซึ่งกำลังใช้งานอยู่ Drupal 7 & 8 จะหมดอายุในไม่ช้า 
 

  • อ่านต่อ เกี่ยวกับ Drupal 8 End of Life
  • Log in to post comments
By admin, 3 กันยายน, 2021

Install Drush on Mac ox for Drupal 8

ใช้กับ php 7.4

wget https://github.com/drush-ops/drush/releases/download/8.3.5/drush.phar
chmod +x drush.phar && mv drush.phar /usr/local/bin/drush

 

  • อ่านต่อ เกี่ยวกับ Install Drush on Mac ox for Drupal 8
  • Log in to post comments
By admin, 7 สิงหาคม, 2021

เพิ่ม class body tag ตาม path เว็บไซต์

แก้ไขที่  .theme ใน folder Theme ของคุณ  แล้ว โค้ดที่ได้จากข้างล่างนี้  
(THEMENAME  เปลี่ยนเป็นชื่อ Theme ของคุณเอง)

/**
 * Implements hook_preprocess_html().
 */
function THEMENAME_preprocess_html(&$vars) {
  // Get the current path
  $current_path = \Drupal::service('path.current')->getPath();
  $internal = \Drupal::service('path_alias.manager')->getAliasByPath($current_path);

  // Assign it to body class 
  $vars['attributes']['class'][] = str_replace("/", "", $internal);
}
  • อ่านต่อ เกี่ยวกับ เพิ่ม class body tag ตาม path เว็บไซต์
  • Log in to post comments
By admin, 5 สิงหาคม, 2021

Drupal 8 Entity API cheat sheet (Part 2)

การทำงานกับ ไฟล์  (File entities)

วิธีส่งค่าไฟล์ออกมาด้วย fid ใน Drupal:

$fid = 31;      // ตัวอย่าง fid
$file_storage = \Drupal::entityTypeManager()->getStorage('file');
$file = $file_storage->load($fid);

การแสดงค่า ออกจากตัวแปร

  • อ่านต่อ เกี่ยวกับ Drupal 8 Entity API cheat sheet (Part 2)
  • Log in to post comments
By admin, 11 พฤษภาคม, 2021

Drupal 8 Entity API cheat sheet (Part 1)

Drupal 8 Entity API cheat sheet

การทำงานเกี่ยวกับ nodes

โหลด Node โดย nid:

$nid = 123;  // ตัวอย่าง nid 
$node_storage = \Drupal::entityTypeManager()->getStorage('node');
$node = $node_storage->load($nid);

Get ค่า nid:

echo $node->id();  // 123

Get ค่า bundle type (หรือ content type):

  • อ่านต่อ เกี่ยวกับ Drupal 8 Entity API cheat sheet (Part 1)
  • Log in to post comments
By admin, 29 ตุลาคม, 2020

ฟรีธีม Kreative: Free HTML template for agencies

ฟรีธีม Free HTML template for agencies

หากคุณต้องการเว็บไซต์สำหรับเอเจนซีของคุณที่มีพอร์ตโฟลิโอและบล็อก Template นี้อาจเหมาะสม Kreative: Free HTML template for agencies

Template มีทั้งหมด 5 หน้า:

  • หน้า Landing Page ที่ประกอบด้วยส่วนต่างๆ
  • หน้าบล็อก
  • โพสต์บล็อก
  • หน้าหมวดหมู่
  • หน้าแนะนำ Style ของตัว Template เอง

 

  • อ่านต่อ เกี่ยวกับ ฟรีธีม Kreative: Free HTML template for agencies
  • Log in to post comments
By admin, 11 พฤษภาคม, 2020

แนะนำเว็บฟรี HTML & CSS Templates

แนะนำเว็บฟรี
รวบรวมเว็บฟรี HTML & CSS Templates สามารถเลือกมาใช้งานตามความต้องการของคุณได้
  • อ่านต่อ เกี่ยวกับ แนะนำเว็บฟรี HTML & CSS Templates
  • Log in to post comments
By admin, 13 กุมภาพันธ์, 2020

Drupal 9.0.0 เข้าสู่สถานะ alpha1

drupal 9

เมื่อวันที่ 11 ก.พ. 2020 ที่ผ่านมา ทาง Drupal.org ได้ขึ้นสถานะ ของ ​ Drupal 9.0.0 เข้าสู่สถานะ alpha1 แล้ว
สามารถเข้าไปดาวน์โหลด  https://www.drupal.org/project/drupal/releases/9.0.0-alpha1 

 

  • อ่านต่อ เกี่ยวกับ Drupal 9.0.0 เข้าสู่สถานะ alpha1
  • Log in to post comments
By admin, 18 มกราคม, 2017

อินเตอร์เน็ตในทุกสิ่ง Internet of Things (ioT)

Internet-Of-Things (IoT)

เทคโนโลยี Internet of Things (ioT) หรือ “อินเตอร์เน็ตในทุกสิ่ง” หมายถึง การที่สิ่งต่างๆ ถูก เชื่อมโยงทุกสิ่งทุกอย่างเข้าสู่โลกอินเทอร์เน็ต ที่ทำให้มนุษย์สามารถสั่งการ ควบคุมใช้งานอุปกรณ์ต่างๆ ผ่านทางเครือข่ายอินเตอร์เน็ต เช่น การสั่งเปิด-ปิด อุปกรณ์เครื่องใช้ไฟฟ้า รถยนต์ โทรศัพท์มือถือ เครื่องมือ สื่อสาร เครื่องมือทางการเกษตร เครื่องจักรในโรงงานอุตสาหกรรม อาคาร บ้านเรือน และเครื่องใช้ในชีวิตประจำวันต่างๆ ผ่านเครือข่ายอินเทอร์เน็ต เป็นต้น โดยเทคโนโลยีนี้จะเป็ นทั้งประโยชน์อย่าง มหาศาล และความเสี่ยงไปพร้อมๆ กัน เพราะหากระบบรักษาความปลอดภัยของอุปกรณ์และเครือข่

  • อ่านต่อ เกี่ยวกับ อินเตอร์เน็ตในทุกสิ่ง Internet of Things (ioT)

Tags

  • drupal
  • api
  • docker
  • theme
  • drupal8
Powered by Drupal Thailand