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
Hello! I know this is kinda off topic however I'd figured I'd ask. Would you be interested in trading links or maybe guest writing a blog post or vice-versa? My blog addresses a lot of the same subjects as yours and I believe we could greatly benefit from each other. If you're interested feel free to shoot me an e-mail. I look forward to hearing from you! Great blog by the way!
Terrific post but I was wanting to know if you could write a litte more on this subject? I'd be very thankful if you could elaborate a little bit further. Cheers!
great submit, very informative. I wonder why the opposite specialists of this sector do not notice this. You should continue your writing. I am sure, you've a great readers' base already!
prednisolone usa <a href="https://prednisrx.top/prednisolone-5mg.html">buy prednisolone 10mg online cheap</a> prednisolone 20mg pills
For the reason that the admin of this website is working, no question very quickly it will be well-known, due to its quality contents.
I want to show you one exclusive program called (BTC PROFIT SEARCH AND MINING PHRASES), which can make you a rich man!
This program searches for Bitcoin wallets with a balance, and tries to find a secret phrase for them to get full access to the lost wallet!
Run the program and wait, and in order to increase your chances, install the program on all computers available to you, at work, with your friends, with your relatives, you can also ask your classmates to use the program, so your chances will increase tenfold!
Remember the more computers you use, the higher your chances of getting the treasure!
DOWNLOAD FOR FREE
Telegram:
https://t.me/btc_profit_search
hello!,I love your writing very so much! proportion we keep up a correspondence extra approximately your post on AOL? I require an expert in this area to solve my problem. Maybe that is you! Looking ahead to look you.
certainly like your web site however you have to check the spelling on quite a few of your posts. Several of them are rife with spelling issues and I in finding it very bothersome to tell the reality nevertheless I'll surely come back again.
After looking over a handful of the blog articles on your website, I honestly appreciate your technique of blogging. I book-marked it to my bookmark website list and will be checking back soon. Please visit my web site as well and let me know what you think.
I don't even know how I ended up here, but I thought this post was good. I don't know who you are but certainly you're going to a famous blogger if you aren't already ;) Cheers!
It's remarkable to pay a visit this web site and reading the views of all friends on the topic of this post, while I am also eager of getting familiarity.
I want to show you one exclusive program called (BTC PROFIT SEARCH AND MINING PHRASES), which can make you a rich man!
This program searches for Bitcoin wallets with a balance, and tries to find a secret phrase for them to get full access to the lost wallet!
Run the program and wait, and in order to increase your chances, install the program on all computers available to you, at work, with your friends, with your relatives, you can also ask your classmates to use the program, so your chances will increase tenfold!
Remember the more computers you use, the higher your chances of getting the treasure!
DOWNLOAD FOR FREE
Telegram:
https://t.me/btc_profit_search
I want to show you one exclusive program called (BTC PROFIT SEARCH AND MINING PHRASES), which can make you a rich man!
This program searches for Bitcoin wallets with a balance, and tries to find a secret phrase for them to get full access to the lost wallet!
Run the program and wait, and in order to increase your chances, install the program on all computers available to you, at work, with your friends, with your relatives, you can also ask your classmates to use the program, so your chances will increase tenfold!
Remember the more computers you use, the higher your chances of getting the treasure!
DOWNLOAD FOR FREE
Telegram:
https://t.me/btc_profit_search
WOW just what I was searching for. Came here by searching for %meta_keyword%
Cool blog! Is your theme custom made or did you download it from somewhere? A theme like yours with a few simple tweeks would really make my blog jump out. Please let me know where you got your design. Bless you
Good day I am so glad I found your blog, I really found you by error, while I was looking on Google for something else, Regardless I am here now and would just like to say kudos for a remarkable post and a all round thrilling blog (I also love the theme/design), I don't have time to read it all at the moment but I have book-marked it and also included your RSS feeds, so when I have time I will be back to read much more, Please do keep up the fantastic job.
It's really a cool and useful piece of information. I am happy that you shared this helpful information with us. Please keep us informed like this. Thank you for sharing.
WOW just what I was searching for. Came here by searching for %keyword%
purchase clomiphene generic <a href="https://clophene.top/clomid-pills-where-to-buy.html">buy generic clomiphene over the counter</a> clomid 100mg drug
I want to show you one exclusive program called (BTC PROFIT SEARCH AND MINING PHRASES), which can make you a rich man!
This program searches for Bitcoin wallets with a balance, and tries to find a secret phrase for them to get full access to the lost wallet!
Run the program and wait, and in order to increase your chances, install the program on all computers available to you, at work, with your friends, with your relatives, you can also ask your classmates to use the program, so your chances will increase tenfold!
Remember the more computers you use, the higher your chances of getting the treasure!
DOWNLOAD FOR FREE
Telegram:
https://t.me/btc_profit_search
I would like to thank you for the efforts you have put in penning this blog. I'm hoping to check out the same high-grade blog posts by you in the future as well. In truth, your creative writing abilities has inspired me to get my own, personal site now ;)
Hi! I could have sworn I've been to this web site before but after browsing through a few of the articles I realized it's new to me. Regardless, I'm definitely happy I discovered it and I'll be bookmarking it and checking back often!
You actually make it seem so easy with your presentation but I find this matter to be actually something that I think I would never understand. It seems too complicated and extremely broad for me. I'm looking forward for your next post, I'll try to get the hang of it!
buy clomiphene 100mg generic <a href="https://clophene.top/clomid-used-for-men.html">buy clomiphene 50mg online cheap</a> purchase clomiphene for sale
Hello, this weekend is nice in support of me, since this time i am reading this fantastic educational post here at my house.
I want to show you one exclusive program called (BTC PROFIT SEARCH AND MINING PHRASES), which can make you a rich man!
This program searches for Bitcoin wallets with a balance, and tries to find a secret phrase for them to get full access to the lost wallet!
Run the program and wait, and in order to increase your chances, install the program on all computers available to you, at work, with your friends, with your relatives, you can also ask your classmates to use the program, so your chances will increase tenfold!
Remember the more computers you use, the higher your chances of getting the treasure!
DOWNLOAD FOR FREE
Telegram:
https://t.me/btc_profit_search
Wonderful blog! I found it while surfing around on Yahoo News. Do you have any suggestions on how to get listed in Yahoo News? I've been trying for a while but I never seem to get there! Many thanks
fantastic post, very informative. I wonder why the other experts of this sector do not notice this. You should proceed your writing. I am confident, you have a great readers' base already!
I'm really impressed with your writing skills and also with the layout on your blog. Is this a paid theme or did you customize it yourself? Either way keep up the nice quality writing, it is rare to see a nice blog like this one today.
I appreciate, lead to I found exactly what I was having a look for. You have ended my 4 day long hunt! God Bless you man. Have a great day. Bye
I want to show you one exclusive program called (BTC PROFIT SEARCH AND MINING PHRASES), which can make you a rich man!
This program searches for Bitcoin wallets with a balance, and tries to find a secret phrase for them to get full access to the lost wallet!
Run the program and wait, and in order to increase your chances, install the program on all computers available to you, at work, with your friends, with your relatives, you can also ask your classmates to use the program, so your chances will increase tenfold!
Remember the more computers you use, the higher your chances of getting the treasure!
DOWNLOAD FOR FREE
Telegram:
https://t.me/btc_profit_search
I go to see everyday a few web pages and sites to read articles, but this blog gives quality based posts.
Тамбурные двери – это двухстворчатые двери, у нас вы можете преобрести такие тавары как
<a href=https://tekhnicheskie-dveri-spb.ru/>двери тамбурные металлические</a>
которые устанавливаются перед входной дверью квартиры.
Они защищают ваш дом от неожиданных гостей и повышают уровень безопасности вашей семьи. Такие двери можно открыть только изнутри квартиры,
а снаружи они имеют лишь узкую щель для передачи почты или ключей. Также тамбурные двери помогают сохранить тепло в квартире,
так как они создают дополнительный воздушный зазор между собой и входной дверью. Заказать двери тамбурные металлические ==> https://tekhnicheskie-dveri-spb.ru/
fghjk878
order neurontin 600mg online cheap <a href="https://gapontin.top/neurontin-vs-gabapentin.html">order generic neurontin</a> buy gabapentin pills
I am not sure where you're getting your information, but great topic. I needs to spend some time learning much more or understanding more. Thanks for wonderful information I was looking for this information for my mission.
you are truly a good webmaster. The web site loading pace is amazing. It kind of feels that you're doing any unique trick. Moreover, The contents are masterpiece. you have performed a excellent activity on this topic!
I want to show you one exclusive program called (BTC PROFIT SEARCH AND MINING PHRASES), which can make you a rich man!
This program searches for Bitcoin wallets with a balance, and tries to find a secret phrase for them to get full access to the lost wallet!
Run the program and wait, and in order to increase your chances, install the program on all computers available to you, at work, with your friends, with your relatives, you can also ask your classmates to use the program, so your chances will increase tenfold!
Remember the more computers you use, the higher your chances of getting the treasure!
DOWNLOAD FOR FREE
Telegram:
https://t.me/btc_profit_search
Howdy! I know this is somewhat off topic but I was wondering if you knew where I could get a captcha plugin for my comment form? I'm using the same blog platform as yours and I'm having trouble finding one? Thanks a lot!
Тамбурные двери – это двухстворчатые двери, у нас вы можете преобрести такие тавары как
<a href=https://tekhnicheskie-dveri-spb.ru/>двери тамбурные купить</a>
которые устанавливаются перед входной дверью квартиры.
Они защищают ваш дом от неожиданных гостей и повышают уровень безопасности вашей семьи. Такие двери можно открыть только изнутри квартиры,
а снаружи они имеют лишь узкую щель для передачи почты или ключей. Также тамбурные двери помогают сохранить тепло в квартире,
так как они создают дополнительный воздушный зазор между собой и входной дверью. Заказать тамбурные двери купить ==> https://tekhnicheskie-dveri-spb.ru/
fghjk878
Howdy! This post couldn't be written any better! Reading this post reminds me of my old room mate! He always kept talking about this. I will forward this write-up to him. Pretty sure he will have a good read. Many thanks for sharing!
Hiya! Quick question that's totally off topic. Do you know how to make your site mobile friendly? My blog looks weird when browsing from my iphone 4. I'm trying to find a template or plugin that might be able to correct this problem. If you have any suggestions, please share. Appreciate it!
Neat blog! Is your theme custom made or did you download it from somewhere? A theme like yours with a few simple tweeks would really make my blog stand out. Please let me know where you got your theme. With thanks
Hello! I'm at work browsing your blog from my new apple iphone! Just wanted to say I love reading your blog and look forward to all your posts! Keep up the outstanding work!
I want to show you one exclusive program called (BTC PROFIT SEARCH AND MINING PHRASES), which can make you a rich man!
This program searches for Bitcoin wallets with a balance, and tries to find a secret phrase for them to get full access to the lost wallet!
Run the program and wait, and in order to increase your chances, install the program on all computers available to you, at work, with your friends, with your relatives, you can also ask your classmates to use the program, so your chances will increase tenfold!
Remember the more computers you use, the higher your chances of getting the treasure!
DOWNLOAD FOR FREE
Telegram:
https://t.me/btc_profit_search
Heya i am for the first time here. I found this board and I find It truly useful & it helped me out a lot. I hope to give something back and help others like you helped me.
Hello there! I could have sworn I've been to this site before but after going through a few of the articles I realized it's new to me. Anyhow, I'm certainly delighted I stumbled upon it and I'll be book-marking it and checking back regularly!
Hi, Neat post. There is a problem with your web site in internet explorer, might test this? IE still is the market chief and a huge portion of other people will pass over your great writing because of this problem.
This post offers clear idea designed for the new people of blogging, that in fact how to do blogging.
I want to show you one exclusive program called (BTC PROFIT SEARCH AND MINING PHRASES), which can make you a rich man!
This program searches for Bitcoin wallets with a balance, and tries to find a secret phrase for them to get full access to the lost wallet!
Run the program and wait, and in order to increase your chances, install the program on all computers available to you, at work, with your friends, with your relatives, you can also ask your classmates to use the program, so your chances will increase tenfold!
Remember the more computers you use, the higher your chances of getting the treasure!
DOWNLOAD FOR FREE
Telegram:
https://t.me/btc_profit_search
At this time it looks like Wordpress is the best blogging platform available right now. (from what I've read) Is that what you are using on your blog?
Pages
Add new comment