Các công việc cần thiết xây dựng website công ty bằng Drupal 8

Các công việc cần thiết xây dựng website công ty bằng Drupal 8

Last week, we launched our new company site built in Drupal 8. Previously, it was a Drupal 6 site built ages ago and in high need of a redesign anyway. So, with Drupal 8 around the corner, what better way to learn Drupal 8 and help development at the same time?

We started exploring around the time of the first beta, and decided to write up all the bumps in the road we encountered along the way. Overall, it was a great experience and we even managed to squeeze in a patch or two to fix some bugs. Drupal 8 clearly has a lot of improvements for everybody: developers will enjoy the solid framework, frontend people get Twig, and I can't wait to show clients the quick edit functionality.

General tips and notes:

  • The site does not use any contrib modules. Most of the common ones we use are now in core. We did use the Devel module during development.
  • We did built some custom modules, mostly for some custom blocks. More on those below.
  • We usually use Display Suite, but with the new powers from the Twig templating system, we didn't miss it.
  • Drupal 8 is installed with production settings by default. So make sure you have debugging enabled in your development environment by using the example.settings.local.php file located in sites/default.
  • Getting a WSOD or fatal error? First try running update.php, rebuild.php, and/or manually clearing the cache tables and remove the php directory in the files folder (rebuild.php does this for you).
  • Upgrade to Drush 7 or else drush won't work in Drupal 8.
  • Enable Twig debugging by using development.services.yml (see services.yml for examples).
  • The Devel module also has a new debugging tool called Kint.
  • If all that doesn't help, try this core patch which will give you a lot more detailed debug information on fatal errors.
  • Minor thingy: Google webmaster warns about robots.txt having invalid syntax.

Chasing Drupal 8 betas:

  • There is no beta-to-beta upgrade path (not yet, but it's close). Because of this I felt chasing head was the better choice. That way you can easier track down changes that might break your site or need database updates.
  • Speaking of changes, keep a close eye on the Drupal 8 changelog, everything is documented there with references to issues.
  • For example: the latest beta6 release requires you to have the link module enabled, because shortcut depends on it. If you upgrade to beta6 or higher from a previous copy and do not have the link module enabled you will get a fatal error.


  • The site we built is in Dutch, but we wanted to have it "multilingual ready" (e.g. have the language prefix) so we used the multilingual modules which are in core.
  • Upgrading was difficult due to database update issues which seem to be fixed now.
  • Drupal was never as multilingual as Drupal 8 is, but expect bugs as this is still under heavy development.
  • Gabor has written a great series of posts about multilingual Drupal 8 tidbits. Highlyrecommended because it also touches some core concepts in Drupal 8 like content and configuration entities.

Custom modules we built:

  • We built a custom module to register a custom path we use as frontpage for the background-video at the top of the page. That way we can include the javascript library (jquery-backgroundvideo) using a libraries.yml file included in the module.
  • This router also generates some custom meta tags for our frontpage.
  • We also made some programatically created blocks. These are used for the testimonials flexslider to load some custom blocks using entityQuery and entity_load_multiple. Super easy! (at the time, this was not yet possible with views, but seems to be fixed now)

Concluding: we are very excited about Drupal 8 and I can highly recommend building your own company site in D8 at this time, although I wouldn't use it for most client work just yet.

You can find similar blog posts with even more very useful information below. They certainly were useful for us, so thanks!

Bạn thấy bài viết này như thế nào?: 
Average: 5 (1 vote)
Ảnh của Tommy Tran

Tommy Tran owner Express Magazine

Drupal Developer having 9+ year experience, implementation and having strong knowledge of technical specifications, workflow development. Ability to perform effectively and efficiently in team and individually. Always enthusiastic and interseted to study new technologies

  • Skype ID: tthanhthuy
  • Phone/Zalo: (+84) 944 225 212
  • WhatsApp: (+84) 944 225 212
  • Line Messenger: (+84) 944 225 212
  • Email: asaleotestf@gmail.com
  • Telegram Messenger: https:/t.me/tommytran0401

Quảng cáo việc làm


Thích hợp các bạn nữ mảng thợ may làm việc tại nước NGA

Đơn hàng Tuyển dụng 100 Thợ may đi Nga(đợt 1 tháng 3.2021, đợt 2 tháng 5.2021). Lương thực lãnh 800 USD, bao ăn ở, vé máy bay và visa, phí xuất cảnh(1800 USD)trả khi đi làm có lương. Bạn có thể liên hệ CÔNG TY qua Phone/Zalo: (+84) 944 225 212. Công ty sẽ tư vấn cho bạn.

Xem chi tiết: >>> https://bit.ly/3o9NOfR

Tìm kiếm bất động sản





Dich vu khu trung tphcm

Dich vu diet chuot tphcm

Dich vu diet con trung

Quảng Cáo Bài Viết

Pro Drupal Development 2nd Edition e-Book Full

Pro Drupal Development 2nd Edition e-Book Full

Bạn đang muốn tìm hiểu về framework Drupal? Cuốn ebook này giúp developer nắm được các bước để phát triển module và tùy biến drupal theo ý muốn.

Cách giữ PageRank khi Google dùng giải thuật Panda

Cách giữ PageRank khi Google dùng giải thuật Panda

Giải thuật mới vừa được Google cập nhật có tên mã Google’s Panda đã gián cấp nhiều website trong thời gian gần đây, nhất là các website content farm.

genCRM - Giải pháp crm cho doanh nghiệp vừa và nhỏ

genCRM - Giải pháp crm cho doanh nghiệp vừa và nhỏ

genCRM là phần mềm quản trị Quan hệ khách hàng do Công ty Cổ phần Công nghệ GEN nghiên cứu và phát triển dựa trên sự phân tích chuyên sâu khoa học về quản trị mối quan hệ với khách hàng, kế thừa có chọn lọc các mô hình CRM trên thế giới và phát triển theo đặc thù cũng như văn hóa kinh doanh của Việt Nam.