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
Whoa quite a lot of useful advice. novГ© online casino cz https://luckyusaplay.com/tennessee-casinos/ mohawk casino online
Very good data. With thanks. online casino usa real money no deposit https://usagamblinghub.com/real-money-baccarat/ new hampshire casino online
Many thanks! A good amount of information.
jocuri online slot casino gratis <a href="https://usagamblinghub.com/">brand new online casinos usa no deposit bonus</a> online casino osterreich <a href="https://luckyusaplay.com/canadian-casinos/">canadian casinos online</a> online casino south korea <a href="https://usacasinomaster.com/real-money-casinos/">free online casino games</a> hippozino online casino <a href="https://usaplayerscasino.com/real-money-slots/">best online casino for slots</a> online casinos that accept ltc
I know this if off topic but I'm looking into starting my own weblog and was curious what all is required to get set up? I'm assuming having a blog like yours would cost a pretty penny? I'm not very internet savvy so I'm not 100% positive. Any suggestions or advice would be greatly appreciated. Thank you
You actually revealed that terrifically overseas online casino usa online casino red32 casino online no deposit bonus casino canada online casino free credit no deposit new online casinos real money nombres de casinos online casino online slots free golden nugget online casino pa launch
Regards, Very good information!
online casino odds of winning https://uscasinoguides.com/legit-casinos/ casino scorsese online
Thanks. I like this!
5 dollar deposit online casino https://usacasinomaster.com/reddog-review/ neteller casino online
Really loads of terrific data.
top paying casinos online <a href="https://luckyusaplay.com/">casino online no deposit</a> best online slots casinos <a href="https://luckyusaplay.com/canadian-casinos/">best casinos in canada</a> gta online casino heist reset vault contents <a href="https://usaplayerscasino.com/real-money-casinos/">online casino with real money</a> online casino entropay <a href="https://usaplayerscasino.com/real-money-slots/">online slot casinos</a> best online casino usa paypal
You said it exceptionally well.
best online casinos usa 2021 https://usacasinomaster.com/new-jersey-casinos/ best casino for roulette online
Nicely put. Regards.
kostenlos online casino https://luckyusaplay.com/soccer-betting/ best odds online casino slots
I do accept as true with all the ideas you've presented to your post. They're really convincing and can definitely work. Nonetheless, the posts are too quick for novices. Could you please prolong them a bit from next time? Thank you for the post.
Wow, that's what I was seeking for, what a stuff! existing here at this web site, thanks admin of this site.
You said it adequately..
carousel online casino <a href="https://usagamblinghub.com/">best usa online casinos</a> 888 online casino reviews <a href="https://usacasinomaster.com/canadian-casinos/">casinos in ontario canada</a> online casino that accepts ecopayz <a href="https://usagamblinghub.com/real-money-casinos/">online casino real money no deposit free spins</a> red32 casino online <a href="https://usagamblinghub.com/real-money-slots/">real casino slots online</a> online casino consulting
Seriously lots of terrific knowledge. swedish online casinos https://usagamblinghub.com/reddog-review/ austria casino online
You said it superbly casino world free online games https://uscasinoguides.com/ethereum-casinos/ casino online italy
Good material. Cheers!
are there any american online casinos <a href="https://usaplayerscasino.com/">new online casino usa ok</a> poker online casino <a href="https://usaplayerscasino.com/canadian-casinos/">great canadian casino vancouver</a> crypto online casinos <a href="https://usaplayerscasino.com/real-money-casinos/">casino online real money usa</a> casino ontario online <a href="https://usacasinomaster.com/real-money-slots/">best online casino slots</a> free online casino slots win real money
Superb material. With thanks. online casino dublin new online casinos usa real money borgata casino online customer service luxury casino canada las atlantis online casino reviews real money online casinos casino online 2022 online free slots casino online casino bonus abuse
This is a topic which is near to my heart... Take care! Where are your contact details though?
Если вы искали где отремонтировать сломаную технику, обратите внимание - <a href=https://krasnodar.profi-teh-remont.ru>техпрофи</a>
Nicely put. Thanks a lot!
777 slots casino online https://usacasinomaster.com/betonline-review/ online casino med bäst utdelning
Hi to every one, the contents existing at this web site are genuinely remarkable for people knowledge, well, keep up the nice work fellows.
Great content, Thanks!
online casino no deposit promotions https://usagamblinghub.com/mybookie-review/ jack casino online
Nicely put, Appreciate it.
win casino games online <a href="https://usaplayerscasino.com/">bet online casino</a> online casino microgaming no deposit bonus <a href="https://luckyusaplay.com/canadian-casinos/">rocket play casino canada</a> pin up bet casino pin up online <a href="https://uscasinoguides.com/real-money-casinos/">real casino games online</a> the best online casino canada <a href="https://luckyusaplay.com/real-money-slots/">free casino slots online</a> agen casino online malaysia
Many thanks. An abundance of advice!
hollywood casino online phone number https://usacasinomaster.com/washington-casinos/ luigi's casino online
Having read this I believed it was extremely informative. I appreciate you finding the time and energy to put this content together. I once again find myself personally spending a lot of time both reading and commenting. But so what, it was still worthwhile!
Amazing info. Thank you!
888 us casino play online https://uscasinoguides.com/bitcoin-casinos/ online casino nova scotia
buy baclofen 10mg online cheap - <a href="https://baclion.com/">buy ozobax cheap</a> buy feldene 20 mg
Awesome write ups. Thank you.
good online casino apps <a href="https://luckyusaplay.com/">online casino list</a> gta v online how to do casino heist <a href="https://usaplayerscasino.com/canadian-casinos/">online casino canada</a> online roulette casino estonia <a href="https://usaplayerscasino.com/real-money-casinos/">online casino real money usa</a> online casino ohne einschränkung <a href="https://usaplayerscasino.com/real-money-slots/">online casino slot machines for real money</a> gta online all casino access points
Position certainly taken. gta online casino loading forever https://usaplayerscasino.com/ufc-betting/ gta online diamond casino heist glitch
Good knowledge. Regards wynn casino online michigan https://luckyusaplay.com/legit-casinos/ ak online casinos
You said it perfectly..
real legit online casino <a href="https://uscasinoguides.com/">brand new online casinos usa</a> ny online casino apps <a href="https://luckyusaplay.com/canadian-casinos/">best casinos in canada</a> free sign on bonus online casino <a href="https://uscasinoguides.com/real-money-casinos/">casino games online real money</a> 21 com online casino <a href="https://usagamblinghub.com/real-money-slots/">online slot casino</a> casino vegas free games slots online
You actually explained this fantastically. free fun casino games online live dealer online casino iowa online casino real money canadian online casino casino online venezuela bono sin deposito new online casinos real money online casino video slots online slots casinos online casino usa real money fast payout
Information effectively regarded..
royal vegas online casino app https://luckyusaplay.com/arizona-casinos/ best online casinos for baccarat
Link exchange is nothing else however it is only placing the other person's webpage link on your page at suitable place and other person will also do similar in support of you.
You actually mentioned it fantastically!
mohegan sun online casino sign up bonus <a href="https://usacasinomaster.com/">casino online usa</a> vegas x org casino online <a href="https://usaplayerscasino.com/canadian-casinos/">casino en ligne canada</a> online casino lizenz schweiz <a href="https://usagamblinghub.com/real-money-casinos/">casino online games real money</a> are online casinos legal in arizona <a href="https://usaplayerscasino.com/real-money-slots/">casino online slot</a> online casino 10 euro startguthaben
Hi, I do believe this is a great web site. I stumbledupon it ;) I will revisit yet again since I book-marked it. Money and freedom is the greatest way to change, may you be rich and continue to guide others.
Nicely put. With thanks arina plus online casino us online casinos forum online casino best online casino canada real money online casino texas no deposit casino online for real money blackjack online casino live casino slots online san manuel casino play online
Thanks, Loads of facts.
mgm pa online casino https://luckyusaplay.com/ufc-betting/ online casino software manipulieren
Cheers. Quite a lot of content!
bally's casino online login <a href="https://usaplayerscasino.com/">best online casinos</a> venezuelan online casinos <a href="https://uscasinoguides.com/canadian-casinos/">casino rewards canada</a> free casino slot games online no deposit no download <a href="https://usaplayerscasino.com/real-money-casinos/">usa online casino real money</a> sugarhouse online casino sign up bonus <a href="https://usacasinomaster.com/real-money-slots/">quick hit casino online slots</a> play live casino online free
I don't even know how I ended up here, but I thought this post was great. I do not know who you are but certainly you are going to a famous blogger if you aren't already ;) Cheers!
Youve made your position very nicely.. synot online casino https://luckyusaplay.com/cricket-betting/ fortuna casino online
You stated this terrifically online games casino slot https://uscasinoguides.com/no-deposit-casinos/ 10 deposit online casino australia
You actually suggested it really well.
virginia online casino games https://usagamblinghub.com/mbit-review/ win real money online casino games
Медикаментозное лечение экземы направлено на уменьшение воспалительного процесса и зуда.
Важно! Не занимайтесь самолечением, строго следуйте назначениям специалиста.
Многие средства имеют противопоказания и ограничения, поэтому очная консультация врача обязательна и незаменима.
Чтобы узнать больше о кожном недуге, посетите наш сайт [url=https://kaklechitsya.ru/]kaklechitsya.ru[/url]
I think this is one of the most important info for me. And i am glad reading your article. But wanna remark on few general things, The site style is ideal, the articles is really great : D. Good job, cheers
Regards! I appreciate this!
sweeps casinos online <a href="https://usagamblinghub.com/">online casino free play no deposit</a> tipos online casino <a href="https://usaplayerscasino.com/canadian-casinos/">great canadian casino vancouver</a> gta online casino slots <a href="https://luckyusaplay.com/real-money-casinos/">casino online real money usa</a> american dad online casino normale <a href="https://usagamblinghub.com/real-money-slots/">best online casino for slots</a> online casino norway
Nicely put. Cheers!
agen osg777 casino online <a href="https://usacasinomaster.com/">casinos online</a> best online casino india <a href="https://uscasinoguides.com/canadian-casinos/">online casinos in canada</a> paysafe online casinos <a href="https://uscasinoguides.com/real-money-casinos/">best real money online casino</a> australian online casino free spins <a href="https://usacasinomaster.com/real-money-slots/">free casino slots online</a> royal bull online casino
Amazing lots of beneficial facts!
casino online com bonus https://usagamblinghub.com/betting-sites/ betrouwbaar casino online
Awesome facts Many thanks. caesers online casino free casino online online casino games casino best casino online canada manitoba online casino las vegas online casino real money allucanbet online casino app casino online slots wyoming online casino
It's the best time to make some plans for the future and it is time to be happy. I've read this post and if I could I want to suggest you few interesting things or advice. Perhaps you can write next articles referring to this article. I desire to read more things about it!
Pages
Add new comment