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
It's very effortless to find out any matter on web as compared to textbooks, as I found this paragraph at this web page.
After looking over a handful of the articles on your web page, I honestly like your way of writing a blog. I bookmarked it to my bookmark site list and will be checking back in the near future. Please visit my website too and let me know what you think.
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
This is my first time pay a quick visit at here and i am really happy to read everthing at alone place.
This is really interesting, You are a very skilled blogger. I have joined your rss feed and look forward to seeking more of your magnificent post. Also, I've shared your web site in my social networks!
Magnificent goods from you, man. I've understand your stuff previous to and you are just too magnificent. I actually like what you have acquired here, really like what you're saying and the way in which you say it. You make it entertaining and you still take care of to keep it smart. I can not wait to read far more from you. This is actually a wonderful site.
An outstanding share! I've just forwarded this onto a coworker who has been doing a little research on this. And he in fact ordered me lunch simply because I discovered it for him... lol. So let me reword this.... Thank YOU for the meal!! But yeah, thanks for spending some time to talk about this topic here on your web site.
I'm amazed, I must say. Seldom do I come across a blog that's both educative and engaging, and without a doubt, you have hit the nail on the head. The problem is an issue that not enough men and women are speaking intelligently about. I'm very happy that I found this during my hunt for something concerning this.
Hello to every one, the contents present at this web site are really amazing for people knowledge, well, keep up the nice work fellows.
I was curious if you ever thought of 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 1 or 2 pictures. Maybe you could space it out better?
Hello! I understand this is kind of off-topic however I needed to ask. Does building a well-established website like yours take a massive amount work? I am brand new to running a blog but I do write in my diary everyday. I'd like to start a blog so I can share my experience and views online. Please let me know if you have any kind of ideas or tips for new aspiring blog owners. Thankyou!
divalproex 250mg generic - <a href="https://adepamox.com/topiramate/">purchase topiramate</a> topamax online buy
You are so cool! I don't believe I have read a single thing like this before. So wonderful to find someone with a few genuine thoughts on this subject. Really.. thank you for starting this up. This web site is something that is needed on the web, someone with a little originality!
I constantly spent my half an hour to read this webpage's articles or reviews all the time along with a cup of coffee.
Ahaa, its nice dialogue concerning this piece of writing at this place at this website, I have read all that, so at this time me also commenting here.
Hello there, just became alert to your blog through Google, and found that it is truly informative. I'm gonna watch out for brussels. I will be grateful if you continue this in future. Many people will be benefited from your writing. Cheers!
I absolutely love your website.. Pleasant colors & theme. Did you make this web site yourself? Please reply back as I'm looking to create my own personal blog and want to find out where you got this from or just what the theme is called. Thank you!
purchase divalproex for sale - <a href="https://adepamox.com/topiramate/">order topamax for sale</a> order topamax 100mg for sale
Hey are using Wordpress for your site platform? I'm new to the blog world but I'm trying to get started and create my own. Do you need any html coding expertise to make your own blog? Any help would be greatly appreciated!
I loved as much as you will receive carried out right here. The sketch is tasteful, your authored subject matter stylish. nonetheless, you command get bought an nervousness over that you wish be delivering the following. unwell unquestionably come more formerly again since exactly the same nearly a lot often inside case you shield this hike.
Why users still make use of to read news papers when in this technological globe everything is available on web?
Hey there just wanted to give you a brief heads up and let you know a few of the images aren't loading correctly. I'm not sure why but I think its a linking issue. I've tried it in two different browsers and both show the same outcome.
My brother recommended I might like this web site. He was entirely right. This post truly made my day. You cann't imagine simply how much time I had spent for this information! Thanks!
Hello friends, how is the whole thing, and what you desire to say concerning this article, in my view its actually remarkable designed for me.
This paragraph will help the internet visitors for creating new web site or even a weblog from start to end.
depakote 250mg usa - <a href="https://adepamox.com/">depakote buy online</a> buy topamax 100mg pills
When someone writes an article he/she maintains the idea of a user in his/her brain that how a user can understand it. Thus that's why this piece of writing is outstdanding. Thanks!
It's a shame you don't have a donate button! I'd definitely donate to this fantastic blog! I guess for now i'll settle for bookmarking and adding your RSS feed to my Google account. I look forward to brand new updates and will talk about this website with my Facebook group. Chat soon!
Hello, I think your site might be having browser compatibility issues. When I look at your blog site in Firefox, it looks fine but when opening in Internet Explorer, it has some overlapping. I just wanted to give you a quick heads up! Other then that, fantastic blog!
At this moment I am going to do my breakfast, once having my breakfast coming again to read other news.
Every weekend i used to visit this web page, because i want enjoyment, as this this site conations really good funny data too.
Howdy! This is my first visit to your blog! We are a group of volunteers and starting a new initiative in a community in the same niche. Your blog provided us valuable information to work on. You have done a wonderful job!
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 smart so I'm not 100% positive. Any tips or advice would be greatly appreciated. Appreciate it
I'm extremely impressed with your writing skills as neatly as with the format in your blog. Is this a paid theme or did you customize it your self? Anyway stay up the excellent high quality writing, it is rare to look a nice weblog like this one these days..
Your method of telling everything in this piece of writing is genuinely nice, all be able to effortlessly know it, Thanks a lot.
Appreciating the time and energy you put into your website and detailed information you present. It's nice to come across a blog every once in a while that isn't the same old rehashed information. Wonderful read! I've saved your site and I'm adding your RSS feeds to my Google account.
buy cheap disopyramide phosphate - <a href="https://anorpica.com/">buy norpace pill</a> order thorazine 50 mg
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
A fascinating discussion is definitely worth comment. There's no doubt that that you should write more on this subject matter, it might not be a taboo matter but usually people don't discuss these subjects. To the next! Best wishes!!
Appreciating the dedication you put into your blog and in depth information you present. It's nice to come across a blog every once in a while that isn't the same outdated rehashed material. Great read! I've saved your site and I'm including your RSS feeds to my Google account.
buy disopyramide phosphate generic - <a href="https://anorpica.com/lamotrigine/">lamotrigine 200mg for sale</a> buy thorazine 100mg for sale
hey there and thank you for your info – I have certainly picked up something new from right here. I did however expertise a few technical points using this website, as I experienced to reload the website lots of times previous to I could get it to load properly. I had been wondering if your hosting is OK? Not that I'm complaining, but slow loading instances times will very frequently affect your placement in google and can damage your high quality score if ads and marketing with Adwords. Well I'm adding this RSS to my e-mail and can look out for a lot more of your respective interesting content. Ensure that you update this again very soon.
Heya i'm for the primary time here. I found this board and I in finding It really helpful & it helped me out much. I hope to offer something back and aid others such as you aided me.
I need to to thank you for this great read!! I certainly loved every little bit of it. I've got you book marked to check out new stuff you post…
Just wish to say your article is as astounding. The clearness in your post is just excellent and i can assume you're an expert on this subject. Well with your permission allow me to grab your RSS feed to keep up to date with forthcoming post. Thanks a million and please carry on the rewarding work.
Appreciate this post. Let me try it out.
divalproex oral - <a href="https://adepamox.com/amiodarone/">buy amiodarone 200mg online cheap</a> topiramate sale
This web site truly has all the information and facts I needed about this subject and didn't know who to ask.
I read this post fully concerning the resemblance of hottest and earlier technologies, it's awesome article.
I constantly emailed this webpage post page to all my friends, for the reason that if like to read it then my contacts will too.
Pages
Add new comment