UPDATE: In August 2015 I moved this site back to Drupal 7. Drupal 8 is still in beta, and though it's going to be fun, it's obviously not ready for prime time yet.
A few weeks ago I decided to rebuild this blog from scratch. It had been literally years since I'd posted, so I figured I'd include just a few of the last entries. Also, Drupal 8 was in beta and I'm impatient. Why not build a brand new site in 8.0.0-beta9?, I thought. How hard could it be?
So, okay. It was a little bit hard. But surprisingly, the experience wasn’t as hairy as you might expect. Here’s a summary of my adventurous, experimental walk on the wild beta side.
Installing Drupal 8
Before I go further, I should mention that I installed Drupal 8 on a previously set up local environment. (If you don’t know what that means, you can find out more here. For fellow Mac users, I’d recommend these instructions.)
Honestly, installation was a breeze. The whole process took less than 5 minutes and was similar enough to Drupal 7 that I felt on solid ground. I just downloaded and untarred core, added a new database in Mamp, went to the site in my browser and followed the instructions. Easy peasy.
Playing with core was equally as uneventful and fun. I added a new user, enabled and disabled core modules, added a new content type and a taxonomy vocabulary, tweaked permissions, etc. All without a hitch. The admin interface looks and acts almost the same as D7's. For someone who builds a lot of sites for non-technical admins, this is a big relief.
I decided this was easy. Drupal 8 was a lot more stable than I’d expected. I was feeling confident, so I decided to try creating a custom theme.
Custom Theming: Take One
Considering D8’s not even released yet, the documentation on drupal.org on Theming Drupal 8 is pretty extensive. In fact it’s so extensive, it’s a bit overwhelming at first.
If you're familiar with D7 theming and just wanted to get up and running quickly, you might prefer 27 Questions (and Answers) from My First Drupal 8 Site Build by Matt Korostoff. His article was extremely helpful, although I was glad to be have the d.o documentation to refer to when I got stuck or wanted to delve into something more deeply.
Adding JS, CSS and Font Files and Libraries
I decided to keep a hand on the tow line and created a Classy subtheme, following Matt’s instructions for setting up the x.info.yml and and x.libraries.yml files.
You can see the .info.yml file looks a lot like the .info in Drupal 7. The main difference is the way CSS and JS are added. Instead of adding them directly to the .info.yml file, you include a reference to a .libaries.yml file, and that is where you add your scripts, stylesheets and dependencies. That was probably the biggest gotcha for me--figuring out how to include JS scripts, libraries and dependencies and font libraries. There was conflicting information on the webs, but this is what worked for me:
Because I had a number of CSS and JS files, I followed the advice (from d.o. maybe?) to break them into two groups—global-styling and global-scripts,. These will now be available to every page.
My scripts.js is actually just a teeny few lines to handle the navigation bar, but surprisingly, Drupal 8 doesn’t load JQuery on every page automatically like D7 did. You have to add it as a dependency, as well as any other js you want to run on every page.
One thing I never figured out was how to add my custom fonts. I use Google's PT Serif and Inconsolata in this theme, and the only way I could get the fonts to load was by adding an @import to my main CSS file:
@import url(http://fonts.googleapis.com/css?family=Inconsolata|PT+Serif:400,400italic,700,700italic);
It works, and that'll have to do for now.
Twig Templates
I find Twig to be easier and more intuitive than the PHP of previous .tpl.php files. If you don't agree, some of the documentation on d.o might be helpful, especially Twig Coding Standards.
The Classy theme was a godsend for me when it came to creating custom templates. Whether you create a subtheme of Classy or not, you can look at the slew of templates it includes to get an idea of how to create your own.
For this theme, I needed a custom block--search-form-block.html.twig and changes to page.html.twig and node.html.twig. For instance, like Matt Korostoff, I don't much like the default "submitted by" line. To tweak it, I copied the node.html.twig from Classy, plopped it in my theme's template folder, and changed the line:
I still haven't figured out how to get my custom date/time format to print, but I'll keep working on it. :)
Custom Modules and More
I enabled a few contrib modules (Prepopulate, Youtube Field, Captcha and Recaptcha) that were absolutely required before going live. All worked beautifully out-of-the-box. However, the other contrib modules I tried gave me either a WSOD or that ghastly pink error message.
At this time I'd recommend enabling contrib modules cautiously, if at all. Most are still in dev for a reason. Maybe try them on a test install first and see what blows up.
Luckily this is a simple site that can run without many contrib modules. If you have a complex site that requires a number of them, you may have to wait a bit before they're all ported to 8. Bluespark publishes a helpful live list of the current status of the top 100 Drupal modules. Check it out to see if your modules are listed.
I'm know you're waiting on tenterhooks for your favorite modules, but remember that most of the people who create and maintain contrib modules do so on their own time and without pay. That's pretty darn generous of them, and I'm grateful for all the vacation time and off hours they spend creating modules that make my life easier. Unless I'm able to jump in alongside and start slinging code, I'm happy to wait patiently for contrib modules to be ported.
(Note to self: Patience you must have, my young padawan.)
Conclusion
The (sort of) bad news: Not everyone is crazy enough to spend two days and nights building a D8 site. It still isn't easy. You may get discouraged. You will lose sleep. I still can't get drush 7 (required for D8) to rebuild caches. Importing and exporting a database between dev and live without at least a few WSODs is nigh on impossible. I encountered a number of alien requirements and strange error messages that took time to track down and debug.
The good news: Smarter people than me are working on those problems. Yay!
More good news: I'm no longer afraid of WSODs or error screens that fill three screens. Also, I busted my local dev site and had to rebuild it so many times, I now know a great deal about installing, enabling and configuring Drupal 8.
Was it worth it? You betcha! I'm no programmer, so I was nervous about Drupal 8 coming down the pike. I'm not nervous anymore. In fact, I'm looking forward eagerly to a release candidate.
Thanks to all the people who put so much time and effort into Drupal 8. It's really spectacular, and we thank you for generously sharing your code with us.
Comments
You said it adequately.!
online casino with neosurf https://usagamblinghub.com/casino-apps/ how to use credit card online casino
Awesome facts. Thanks!
the online casino login <a href="https://usacasinomaster.com/">online casino top rated</a> free chip casino online <a href="https://usagamblinghub.com/canadian-casinos/">casinos in ontario canada</a> online casino win real cash <a href="https://usagamblinghub.com/real-money-casinos/">online real money casinos</a> harrington online casino promo code <a href="https://luckyusaplay.com/real-money-slots/">slot machine casino online</a> best online casino real money usa
I simply could not leave your website before suggesting that I extremely loved the standard info a person supply to your visitors? Is going to be again often in order to investigate cross-check new posts
Beneficial advice. Thanks a lot. can you sue an online casino casinos online hollywood online casino wv real money biggest casino in canada safe online casino usa casino online usa real money gta 5 online casino chips casino slots online real money best us online casino slots
You said it nicely.!
casino online nederland https://usagamblinghub.com/esports-betting/ spin online casino
Useful data. Cheers!
gta online casino best approach <a href="https://usagamblinghub.com/">legit online casinos</a> online casino bewertung <a href="https://usagamblinghub.com/canadian-casinos/">best online casinos canada</a> online casinos mit aircash <a href="https://usacasinomaster.com/real-money-casinos/">online casino real money no deposit</a> black lotus online casino no deposit bonus <a href="https://uscasinoguides.com/real-money-slots/">online casino slots</a> best wv online casinos
Terrific work! This is the kind of info that should be shared across the web. Shame on Google for not positioning this post higher! Come on over and talk over with my website . Thank you =)
Many thanks. A lot of write ups. real money online casino connecticut https://usaplayerscasino.com/poker-apps/ play pokerstars casino online
Если вы искали где отремонтировать сломаную технику, обратите внимание - <a href=https://novosibirsk.profi-teh-remont.ru>ремонт бытовой техники в новосибирске</a>
Thanks a lot. Quite a lot of content online casino al https://luckyusaplay.com/mybookie-review/ caesars online casino customer service phone number
You revealed it wonderfully.
online casino sign up no deposit bonus <a href="https://luckyusaplay.com/">online casino no deposit</a> online casino neosurf deposit <a href="https://luckyusaplay.com/canadian-casinos/">canadian casino</a> si casino online <a href="https://usacasinomaster.com/real-money-casinos/">online real money casino usa</a> online casino no rules bonus <a href="https://usaplayerscasino.com/real-money-slots/">slot machine casino online</a> online casino with free signup bonus real money arkansas
Thanks. Useful information jack casino online login us online casinos with rtg software gta v online diamond casino heist diamonds online casinos canada best online nj casino free online casino raging bull online casino login best online casino for slots casino online unique
Very quickly this web site will be famous among all blogging people, due to it's nice articles or reviews
Whoa quite a lot of fantastic info.
q casino online https://usaplayerscasino.com/real-money-roulette/ online casinos nj gov
Thanks a lot. Loads of forum posts.
top 10 australian online casinos https://uscasinoguides.com/indiana-casinos/ lobby vegas casino online eu 3572
Excellent posts. Many thanks.
golden nugget online casino pa bonus code <a href="https://luckyusaplay.com/">usa online casinos</a> free spins online casino no deposit <a href="https://uscasinoguides.com/canadian-casinos/">casinos in ontario canada</a> online casinos payment methods <a href="https://usacasinomaster.com/real-money-casinos/">online casino games for real money</a> online casino poli <a href="https://usagamblinghub.com/real-money-slots/">slot casino online</a> klondaika online casino
Kudos. I value this. casino online test best paying online casino online casino with best welcome bonus canadian casinos online how to rob the casino in gta v online online casino real money free play casino online co slot casino online ts online casino
Superb content. Cheers.
online casino.real.money https://usacasinomaster.com/betting-apps/ bei welchem online casino kann man mit google play bezahlen
Hello there! This post could not be written any better! Reading through this post reminds me of my previous room mate! He always kept talking about this. I will forward this page to him. Fairly certain he will have a good read. Thanks for sharing!
You really make it appear really easy together with your presentation but I in finding this topic to be really something which I feel I might never understand. It kind of feels too complex and very large for me. I'm looking forward to your subsequent submit, I will attempt to get the cling of it!
Good content. Cheers!
best zar online casino <a href="https://uscasinoguides.com/">casinos online usa</a> sun casino online <a href="https://usacasinomaster.com/canadian-casinos/">casino en ligne canada</a> eagle casino online promo code <a href="https://usaplayerscasino.com/real-money-casinos/">online real casino</a> best online casino new customer offers <a href="https://usacasinomaster.com/real-money-slots/">slot casino online</a> free no deposit casinos online
Nicely put. Thanks. nz online casino no deposit free spins https://usagamblinghub.com/texas-holdem/ best nj online casino bonus
Many thanks A lot of stuff online casino maestro card https://usacasinomaster.com/golf-betting/ riversweeps online casino for android
Incredible a lot of wonderful information!
berlin online casino <a href="https://luckyusaplay.com/">no deposit casino bonus usa online casinos</a> play online casino games for fun <a href="https://luckyusaplay.com/canadian-casinos/">canadian casino online</a> casino holdem online free <a href="https://luckyusaplay.com/real-money-casinos/">online casino win real money</a> casino online snai <a href="https://usaplayerscasino.com/real-money-slots/">best casino slot online</a> live casino online pa
An impressive share! I've just forwarded this onto a coworker who was conducting a little research on this. And he in fact bought me breakfast because I discovered it for him... lol. So allow me to reword this.... Thank YOU for the meal!! But yeah, thanx for spending some time to talk about this matter here on your internet site.
Thanks. Useful stuff luckiest online casino new online casino no deposit bonus usa casino tropez online gratis great canadian casino vancouver 2024 new online casinos free online casino real money juegos de casino online mexico best online casino slots best casino in canada online 2022
Have you ever thought about publishing an ebook or guest authoring on other websites? I have a blog centered on the same subjects you discuss and would love to have you share some stories/information. I know my subscribers would appreciate your work. If you're even remotely interested, feel free to shoot me an e-mail.
Thank you! Very good stuff!
hollywood casino sportsbook online <a href="https://usagamblinghub.com/">online casino games</a> online casino support <a href="https://usacasinomaster.com/canadian-casinos/">casino canada en ligne</a> online casinos ohne einzahlung mit bonus <a href="https://usagamblinghub.com/real-money-casinos/">win real money casino online</a> best online bingo casino <a href="https://uscasinoguides.com/real-money-slots/">slot online casino</a> penny roulette online casino
<a href=https://gogocasino.one>https://gogocasino.one</a>
Nicely put Thanks a lot syndicate casino play online https://usagamblinghub.com/live-casinos/ casino vegas free games slots online
Incredible a good deal of very good information. gila river casino online https://uscasinoguides.com/legit-casinos/ louisiana online casino
I was reading some of your content on this website and I conceive this internet site is really informative ! Keep on putting up.
Good forum posts, Thanks!
casino online para ganhar dinheiro <a href="https://uscasinoguides.com/">casino games online free</a> best maine online casino <a href="https://usagamblinghub.com/canadian-casinos/">canadian casinos online</a> novos casinos online <a href="https://usacasinomaster.com/real-money-casinos/">online casino games with real money</a> jogar jogos de casino online <a href="https://luckyusaplay.com/real-money-slots/">online casino real money slots</a> online poker online casino
Thank you I value it. online casino no minimum deposit usa best online casino bonus online casino payout percentages best online casino in canada nuevos casinos online espaГ±a online casino real money us online casinos in michigan with no deposit bonus slots online casino online casino in wv
<a href=https://gogocasino.one>https://gogocasino.one</a>
I'm not sure why but this blog is loading incredibly slow for me. Is anyone else having this issue or is it a problem on my end? I'll check back later on and see if the problem still exists.
When someone writes an piece of writing he/she keeps the image of a user in his/her mind that how a user can be aware of it. So that's why this article is amazing. Thanks!
Great information, Regards!
online spel casino https://uscasinoguides.com/real-money-baccarat/ complete list of nj online casinos
Regards. Plenty of facts!
new online casinos australia 2020 <a href="https://usaplayerscasino.com/">live dealer online casino</a> novomatic online casino free play <a href="https://uscasinoguides.com/canadian-casinos/">best online casinos in canada</a> como trabajar en casino online <a href="https://usacasinomaster.com/real-money-casinos/">online real cash casinos</a> online casino roulette deutschland <a href="https://usacasinomaster.com/real-money-slots/">online casinos with highest slot payouts</a> online casinos ohne konto
Cheers. Quite a lot of facts!
cashmio casino online casino https://luckyusaplay.com/real-money-baccarat/ online casino 2018
Really tons of terrific facts!
free bonus casino online <a href="https://usacasinomaster.com/">online casino top</a> online casino real money free bonus <a href="https://uscasinoguides.com/canadian-casinos/">canadian online casinos</a> online casino bonus nederland <a href="https://uscasinoguides.com/real-money-casinos/">win real money online casino</a> best casino online india <a href="https://usaplayerscasino.com/real-money-slots/">best casinos for online slot machines</a> online casinos real money australia
Excellent write-up. I definitely appreciate this website. Thanks!
You actually mentioned that very well.
new online casinos usa accepted https://usaplayerscasino.com/betonline-review/ 2018 online casino no deposit codes
I was wondering if you ever considered changing the structure of your site? Its very well written; I love what youve got to say. But maybe you could a little more in the way of content so people could connect with it better. Youve got an awful lot of text for only having one or two images. Maybe you could space it out better?
[url=https://samoylovaoxana.ru/tag/otdyh-s-detmi-v-dubae/]отдых с детьми в Дубае[/url] или [url=https://samoylovaoxana.ru/tag/goroda-kurorty/]города курорты[/url]
[url=https://samoylovaoxana.ru/tag/otdyh/]отдых[/url]
https://samoylovaoxana.ru/tag/puteshestvie-na-altaj/
Ещё можно узнать: [url=http://yourdesires.ru/it/windows/29-sbros-parametrov-brauzera-internet-e... explorer сброс настроек[/url]
[url=https://samoylovaoxana.ru/tag/karta-tunisa/]карта Туниса[/url] или [url=https://samoylovaoxana.ru/tag/drevnie-goroda/]древние города[/url]
[url=https://samoylovaoxana.ru/tag/osvald-balczer/]Освальд Бальцер[/url]
https://samoylovaoxana.ru/mosty-dojdia-i-vetra-ynikalnoe-tvorenie-plotni...
Ещё можно узнать: [url=http://yourdesires.ru/fashion-and-style/fashion-trends/1748-kak-vybrat-k...одежда для низких мужчин[/url]
[url=https://samoylovaoxana.ru/chto-privezti-iz-egipta-otdyh-v-afrike/]Что привезти из Египта? Отдых в Африке[/url] или [url=https://samoylovaoxana.ru/tag/otdyh-v-yaroslavle/]отдых в Ярославле[/url]
[url=https://samoylovaoxana.ru/tag/peshhera/]пещера[/url]
https://samoylovaoxana.ru/tag/dub-angela/
Ещё можно узнать: [url=http://yourdesires.ru/it/1248-kak-vvesti-znak-evro-s-klaviatury.html]как сделать евро[/url]
Terrific data, Thank you.
bestes lotto online casino <a href="https://luckyusaplay.com/">usa online casino no deposit</a> us based casinos online <a href="https://luckyusaplay.com/canadian-casinos/">top online casinos canada</a> bet online casino download <a href="https://usacasinomaster.com/real-money-casinos/">free online casino real money</a> rhode island online casinos <a href="https://usacasinomaster.com/real-money-slots/">free slot machine online casino</a> golden nugget online casino michigan
Thank you I like it. crypto online casino https://uscasinoguides.com/canadian-casinos/ money tree online casino
Профессиональный сервисный центр по ремонту стиральных машин с выездом на дом по Москве.
Мы предлагаем: <a href=https://remont-stiralnyh-mashin-prof.ru>ремонт стиральных машин в москве</a>
Наши мастера оперативно устранят неисправности вашего устройства в сервисе или с выездом на дом!
Pages
Add new comment