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
Greetings from Ohio! I'm bored at work so I decided to check out your site on my iphone during lunch break. I enjoy the information you present here and can't wait to take a look when I get home. I'm amazed at how quick your blog loaded on my mobile .. I'm not even using WIFI, just 3G .. Anyhow, amazing site!
Weight Loss Meds in USA: Prescription and over-the-stabilizer loss medications available in the USA.
I read this paragraph completely regarding the comparison of hottest and earlier technologies, it's amazing article.
Thanks for some other great article. Where else may just anybody get that type of information in such an ideal manner of writing? I've a presentation subsequent week, and I am on the search for such information.
Are there any Cialis alternatives worth trying
<a href=https://cialisgettingtips24.com/>cialis 2.5 mg</a>
How long do Cialis effects last
<a href=https://cialisgettingtips24.com/>cialis 5mg</a>
How does Cialis work for younger men
Hi! Quick question that's totally off topic. Do you know how to make your site mobile friendly? My website looks weird when viewing from my iphone4. I'm trying to find a theme or plugin that might be able to correct this issue. If you have any suggestions, please share. Thanks!
Wow, this post is fastidious, my younger sister is analyzing these kinds of things, therefore I am going to inform her.
Great article! That is the type of info that are meant to be shared across the web. Shame on the seek engines for not positioning this submit upper! Come on over and talk over with my web site . Thank you =)
Hi my friend! I wish to say that this article is awesome, nice written and come with almost all vital infos. I would like to peer extra posts like this .
Fantastic beat ! I wish to apprentice while you amend your web site, how could i subscribe for a blog web site? The account helped me a acceptable deal. I had been a little bit acquainted of this your broadcast provided bright clear concept
This is very interesting, You're a very skilled blogger. I've joined your feed and look forward to seeking more of your fantastic post. Also, I've shared your site in my social networks!
It's really a great and helpful piece of info. I'm glad that you simply shared this helpful info with us. Please stay us up to date like this. Thank you for sharing.
I absolutely love your blog and find many of your post's to be precisely what I'm looking for. Would you offer guest writers to write content to suit your needs? I wouldn't mind writing a post or elaborating on a lot of the subjects you write with regards to here. Again, awesome blog!
Howdy! Quick question that's entirely off topic. Do you know how to make your site mobile friendly? My site looks weird when browsing from my iphone. I'm trying to find a theme or plugin that might be able to resolve this issue. If you have any suggestions, please share. Many thanks!
Hi there! This post couldn't be written much better! Looking at this post reminds me of my previous roommate! He continually kept preaching about this. I am going to send this post to him. Fairly certain he will have a very good read. Thank you for sharing!
Spot on with this write-up, I honestly think this website needs a lot more attention. I'll probably be returning to read through more, thanks for the advice!
Hey there! I could have sworn I've been to this site before but after reading through some of the post I realized it's new to me. Anyhow, I'm definitely glad I found it and I'll be book-marking and checking back often!
Hi superb website! Does running a blog like this take a large amount of work? I've virtually no knowledge of coding however I was hoping to start my own blog soon. Anyway, if you have any ideas or techniques for new blog owners please share. I know this is off topic but I simply wanted to ask. Kudos!
Cialis vs Viagra: Which Is Better
<a href=https://cialisgettingtips24.com/>comprar cialis online sin receta</a>
Can Cialis Enhance Physical Stamina
<a href=https://cialisgettingtips24.com/>pharmacy cialis</a>
Can I increase my Cialis dosage safely
Wow, this paragraph is fastidious, my sister is analyzing these things, thus I am going to let know her.
Yesterday, while I was at work, my cousin stole my apple ipad and tested to see if it can survive a 30 foot drop, just so she can be a youtube sensation. My apple ipad is now broken and she has 83 views. I know this is entirely off topic but I had to share it with someone!
It's going to be end of mine day, except before ending I am reading this wonderful post to increase my knowledge.
Hi there, There's no doubt that your site might be having internet browser compatibility problems. When I look at your web site in Safari, it looks fine however when opening in Internet Explorer, it's got some overlapping issues. I just wanted to give you a quick heads up! Other than that, great blog!
http://salon-elos.ru/1win-zerkalo-segodnya/azino-777-ofitsialniy-sayt.php
http://knigarulit.ru/azino777-zerkalo/pin-up-casino-bonus-code.php pin up casino bonus code
http://salon-elos.ru/besplatnie-igri-igrat-igrovie-avtomati/samiy-bolsho...
[url=http://kaziki01.ru/novie-avtomati-igrovie-avtomati-bez-registratsii/fonb...фонбет ru официальный сайт[/url]
http://lipa-fv.ru/igrat-besplatno-slot-avtomati/igrovie-avtomati-po-100-...
http://salon-elos.ru/mod-sloti/1xbet-pochemu-ne-otkrivaetsya.php 1xbet почему не открывается
http://knigarulit.ru/igrat-besplatno-v-igrovie-avtomati/postavit-na-futb... поставить на футбол онлайн ставку
https://salon-elos.ru/fonbet-ofitsialniy-skachat-na-android-besplatno/fi... Фильмы про ставки на спорт
[url=http://knigarulit.ru/casino-registration/zoloto-atstekov-igrovie-avtomat...золото ацтеков игровые автоматы играть бесплатно[/url]
http://winone1.ru/slot-s/promokod-na-bonus-fonbet.php промокод на бонус фонбет
http://salon-elos.ru/skachat-casino/stavka-tv-hokkey.php
http://salon-elos.ru/casino-eldorado/betbum-bukmekerskaya-kontora.php betbum букмекерская контора
http://bonus-vsem01.ru/ofitsialniy-sayt-bukmekerskaya-kontora/pricheska-...
[url=http://bonus-vsem01.ru/skachat-sloti/top-10-luchshih-bukmekerskih-kontor...топ 10 лучших букмекерских контор россии[/url]
http://salon-elos.ru/igrovie-avtomati-besplatnie-igri-bez-registratsii/i... игровые автоматы азино777 играть
http://knigarulit.ru/igrovie-avtomati-vulkan-igrat-besplatno-igri-igrat/... как делать ставки экспресс на 1xbet
[url=http://knigarulit.ru/igrovie-avtomati-novie/minsk-detskie-igrovie-avtoma...минск детские игровые автоматы[/url]
http://salon-elos.ru/besplatnaya-igra-avtomati-igrovie-avtomati/pin-ap-s...
http://lipa-fv.ru/igrovoy-avtomat-slot-besplatno/registratsiya-v-bukmeke... Регистрация в букмекерской конторе без паспорта
[url=http://kaziki01.ru/prilozhenie-fonbet/bonusi-bk-fonbet.php]бонусы бк фонбет[/url]
http://lipa-fv.ru/igrovoy-avtomat-igrat-besplatno-onlayn/bonus-pri-popol...
http://lipa-fv.ru/besplatnie-onlayn-igrovie-avtomati-bez-registratsii/sl...
http://lipa-fv.ru/igrovoy-avtomat-igrat-besplatno-onlayn/promokod-fon-fo...
http://knigarulit.ru/igrovoy-avtomat-besplatno-onlayn-bez-registratsii/f... fonbet мобильное приложение скачать
[url=http://kaziki01.ru/igrovoy-avtomat-onlayn-igrat-besplatno-bez-registrats...центр с игровыми автоматами в москве[/url]
[url=https://logic01.netpro.co.kr/bbs/board.php?bo_table=qa&wr_id=4]игровые автоматы ре[/url]
[url=https://adlerthess.gr/parousiaseis/psifiakes-parousiaseis/item/144-thimos]мобильный 1xbet[/url]
[url=http://chansolburn.com/bbs/board.php?bo_table=free&wr_id=251444]скачать на сайте фо[/url]
[url=http://en.sulseam.com/bbs/board.php?bo_table=free&wr_id=1404830]игровой автомат бес[/url]
[url=http://www.knolive.kr/bbs/board.php?bo_table=free&wr_id=214000]вывод денег игровые[/url]
[url=http://147.47.238.227/bbs/board.php?bo_table=qna&wr_id=3343486]gama casino[/url]
[url=http://core.xii.jp/support/QA/index.cgi?list=thread]онлайн игровой автомат на деньги[/url]
[url=http://ecasug.org/component/k2/item/35-10-navigation-bars]игровые автоматы играть бесплатно без регистрации новые[/url]
[url=https://gazelle54.ru/component/k2/item/18-copy-of-gruzopodjomnost-do-5-t...игровые автоматы игры бесплатно[/url]
[url=https://farmarm.net/bbs/board.php?bo_table=qa&wr_id=163419]игровые автоматы иг[/url]
09ca0c4
http://tesoroshop.ru/products/kulon-dvojnoj-novogodnij-vremya-chudes-tuf...
http://pochemu-chka.ru/pochemu-na-dorogax-tak-mnogo-bolshix-gruzovikov/
http://jd-tehnikum.ru/semya_afganskogo_malchika_poluchivshego_futb.htm
You really make it seem so easy with your presentation but I find this topic to be really something that I think I would never understand. It seems too complex and extremely broad for me. I am looking forward for your next post, I will try to get the hang of it!
You really make it appear really easy along with your presentation however I find this topic to be really one thing that I feel I'd by no means understand. It sort of feels too complex and very extensive for me. I am looking ahead for your subsequent submit, I'll try to get the hang of it!
What i don't understood is in reality how you are no longer really a lot more neatly-favored than you might be now. You're so intelligent. You recognize therefore considerably on the subject of this subject, made me in my opinion believe it from a lot of various angles. Its like men and women aren't fascinated unless it's one thing to do with Woman gaga! Your own stuffs outstanding. Always take care of it up!
Quality articles or reviews is the secret to invite the people to go to see the web site, that's what this site is providing.
tor market url <a href="https://mydarknetmarketlinks.com/ ">dark website </a> bitcoin dark web
Hello Dear, are you actually visiting this web site on a regular basis, if so then you will without doubt get pleasant experience.
darknet market links <a href="https://mydarknetmarketlinks.com/ ">how to get on dark web </a> deep web drug markets
aygestin online buy - <a href="https://norethgep.com/">norethindrone 5mg for sale</a> order yasmin online cheap
dark market <a href="https://mydarknetmarketlinks.com/ ">dark web market links </a> darknet search engine
deep dark web <a href="https://mydarknetmarketlinks.com/ ">dark market 2024 </a> dark web site
bitcoin dark web <a href="https://mydarknetmarketlinks.com/ ">darkmarkets </a> deep web drug markets
My brother recommended I might like this website. He used to be entirely right. This put up truly made my day. You can not consider simply how much time I had spent for this info! Thank you!
Thanks to my father who informed me about this webpage, this webpage is really amazing.
tor market links <a href="https://mydarknetmarketlinks.com/ ">deep web search </a> tor dark web
You explained this wonderfully!
master degree thesis <a href="https://writeadissertation.com/essay-writing-sites/">admission essay writing service</a> how to write titles of books in essays
autobiography college essay <a href="https://ouressays.com/essay-writing-app/">writing an essay outline</a> can you write my essay for me
drug markets dark web [url=https://mydarknetmarketlinks.com/ ]dark market url [/url] dark web drug marketplace
Beneficial write ups. Kudos.
essay help service <a href="https://essaytyperhelp.com/dissertations-help/">dissertation help free</a> writers help
how to write a comparison and contrast essay <a href="https://theessayswriters.com/research-paper-writing-service/">paper writing services</a> easy steps to write an essay
deep web drug links [url=https://mydarknetmarketlinks.com/ ]darkmarket list [/url] darknet market links
Its like you read my mind! You appear to know so much about this, like you wrote the book in it or something. I think that you can do with some pics to drive the message home a little bit, but other than that, this is magnificent blog. A fantastic read. I'll definitely be back.
Superb content, Thanks.
write thesis <a href="https://essayservicehelp.com/content-writing-tips/">content writing company</a> writing essays for money
how to write an excellent essay <a href="https://essaytyperhelp.com/write-a-summary-for-me/">write my essay for me</a> custom admission essay
I visited several websites but the audio quality for audio songs existing at this web site is actually superb.
This is nicely said . professional essay writer mba essay disertion website that write essays for you paraphrasing website buy nothing day essay
Thanks a lot! Quite a lot of posts.
service essay writing <a href="https://domyhomeworkformecheap.com/type-of-speech/">speechwriting</a> argumentative essay for college
cat essay writer <a href="https://writeadissertation.com/research-paper-writer/">pay for someone to write your paper</a> writing company
Hey There. I found your blog using msn. This is a very well written article. I'll make sure to bookmark it and return to read more of your useful info. Thanks for the post. I'll certainly comeback.
Does Cialis help with intimacy concerns
<a href=https://cialisgettingtips24.com/>cialis tablet</a>
How to Deal with Cialis Headaches
<a href=https://cialisgettingtips24.com/>cheap viagra or cialis</a>
Is Cialis Safe with Heart Conditions
Amazing tons of awesome info!
technical writing services <a href="https://writeadissertation.com/report-writing-service/">writing report</a> writing a great college essay
scholarship essays for college <a href="https://essaytyperhelp.com/sections-of-a-literature-review/">literature review methodology</a> content writing services vancouver
Pages
Add new comment