Built with Drupal 8: A Front-Ender's Tale of Danger and Suspense

Error message

  • Deprecated function: The each() function is deprecated. This message will be suppressed on further calls in menu_set_active_trail() (line 2405 of /home1/markspap/public_html/kathy/includes/menu.inc).
  • Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /home1/markspap/public_html/kathy/includes/common.inc).
May 3, 2015

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

I enjoy what you guys tend to be up too. Such clever work and reporting! Keep up the great works guys I've incorporated you guys to my blogroll.

Thanks for sharing your thoughts on %meta_keyword%. Regards

Heya! I'm at work browsing your blog from my new iphone! Just wanted to say I love reading your blog and look forward to all your posts! Keep up the fantastic work!

This is very interesting, You're a very skilled blogger. I have joined your feed and look forward to seeking more of your excellent post. Also, I have shared your web site in my social networks!

Hi there! This post could not be written any better! Reading through this post reminds me of my previous room mate! He always kept chatting about this. I will forward this post to him. Pretty sure he will have a good read. Thanks for sharing!

Howdy! I could have sworn I've visited this website before but after browsing through some of the posts I realized it's new to me. Nonetheless, I'm certainly delighted I discovered it and I'll be bookmarking it and checking back frequently!

Awesome! Its actually awesome article, I have got much clear idea on the topic of from this article.

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 book-marking and adding your RSS feed to my Google account. I look forward to fresh updates and will talk about this website with my Facebook group. Talk soon!

What's up to all, how is the whole thing, I think every one is getting more from this web page, and your views are pleasant in favor of new users.

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

With havin so much content and articles do you ever run into any issues of plagorism or copyright violation? My blog has a lot of exclusive content I've either created myself or outsourced but it looks like a lot of it is popping it up all over the internet without my authorization. Do you know any ways to help stop content from being stolen? I'd really appreciate it.

I think the admin of this web page is truly working hard in support of his site, as here every stuff is quality based information.

Hey, I think your blog might be having browser compatibility issues. When I look at your website in Opera, 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!

Very good info. Lucky me I ran across your blog by chance (stumbleupon). I have bookmarked it for later!

Hi to every one, it's in fact a pleasant for me to go to see this web site, it includes helpful Information.

Hey there just wanted to give you a quick heads up and let you know a few of the pictures 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.

Today, I went to the beach with my kids. I found a sea shell and gave it to my 4 year old daughter and said "You can hear the ocean if you put this to your ear." She placed the shell to her ear and screamed. There was a hermit crab inside and it pinched her ear. She never wants to go back! LoL I know this is entirely off topic but I had to tell someone!

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 think that what you composed made a ton of sense. But, what about this? what if you were to create a awesome post title? I ain't suggesting your information is not solid., however what if you added a post title to maybe grab people's attention? I mean %BLOG_TITLE% is kinda vanilla. You could glance at Yahoo's front page and note how they write article headlines to get viewers to open the links. You might add a video or a pic or two to get readers excited about everything've written. Just my opinion, it might bring your posts a little livelier.

This is a topic that's near to my heart... Cheers! Where are your contact details though?

Hello! Someone in my Facebook group shared this website with us so I came to check it out. I'm definitely enjoying the information. I'm book-marking and will be tweeting this to my followers! Excellent blog and wonderful style and design.

Hmm it seems like your website ate my first comment (it was super long) so I guess I'll just sum it up what I wrote and say, I'm thoroughly enjoying your blog. I as well am an aspiring blog writer but I'm still new to everything. Do you have any suggestions for beginner blog writers? I'd definitely appreciate it.

I visited several web sites however the audio feature for audio songs existing at this site is truly marvelous.

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 just like the helpful information you supply on your articles. I will bookmark your weblog and check once more right here frequently. I'm slightly certain I'll learn many new stuff proper here! Best of luck for the following!

Thank you for some other wonderful article. The place else may anyone get that type of info in such an ideal way of writing? I have a presentation subsequent week, and I'm at the look for such info.

I love looking through an article that can make people think. Also, thanks for permitting me to comment!

Hello would you mind letting me know which webhost you're utilizing? I've loaded your blog in 3 different browsers and I must say this blog loads a lot faster then most. Can you suggest a good hosting provider at a reasonable price? Cheers, I appreciate it!

This design is spectacular! You definitely know how to keep a reader amused. Between your wit and your videos, I was almost moved to start my own blog (well, almost...HaHa!) Fantastic job. I really loved what you had to say, and more than that, how you presented it. Too cool!

Hey just wanted to give you a quick heads up. The text in your article seem to be running off the screen in Internet explorer. I'm not sure if this is a formatting issue or something to do with browser compatibility but I thought I'd post to let you know. The style and design look great though! Hope you get the issue resolved soon. Many thanks

When I initially commented I clicked the "Notify me when new comments are added" checkbox and now each time a comment is added I get four e-mails with the same comment. Is there any way you can remove me from that service? Appreciate it!

Good post! We will be linking to this great post on our website. Keep up the good writing.

each time i used to read smaller content that as well clear their motive, and that is also happening with this article which I am reading now.

Good day! Would you mind if I share your blog with my facebook group? There's a lot of folks that I think would really enjoy your content. Please let me know. Cheers

An outstanding share! I've just forwarded this onto a colleague who has been conducting a little homework on this. And he in fact bought me lunch because I found it for him... lol. So let me reword this.... Thanks for the meal!! But yeah, thanx for spending the time to discuss this issue here on your website.

I like the helpful information you provide in your articles. I will bookmark your weblog and check once more right here frequently. I'm slightly sure I will be told plenty of new stuff right here! Best of luck for the next!

Hello there! Do you know if they make any plugins to assist with Search Engine Optimization? I'm trying to get my blog to rank for some targeted keywords but I'm not seeing very good success. If you know of any please share. Cheers!

I do not know whether it's just me or if everyone else encountering issues with your blog. It seems like some of the text within your posts are running off the screen. Can someone else please comment and let me know if this is happening to them too? This might be a problem with my internet browser because I've had this happen before. Cheers

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

Hi, I want to subscribe for this weblog to take most recent updates, so where can i do it please help out.

Hi, after reading this awesome post i am also happy to share my knowledge here with colleagues.

It's an awesome post designed for all the web visitors; they will take advantage from it I am sure.

I've learn some excellent stuff here. Certainly value bookmarking for revisiting. I wonder how a lot effort you put to create this sort of magnificent informative site.

Excellent write-up. I absolutely love this site. Continue the good work!

Hey there! Someone in my Facebook group shared this website with us so I came to take a look. I'm definitely enjoying the information. I'm bookmarking and will be tweeting this to my followers! Wonderful blog and amazing design and style.

Вы очень выгодный веб-сайт; не мог сделать это без тебя! Посетите также мою страничку

http://ultfoms.ru/user/CharlotteEnoch6/ Игровые автоматы на деньги
http://nytvasport.ru/user/Margarette1728/ Игровые автоматы на деньги
http://ultfoms.ru/user/JosephGlasfurd0/ Игровые автоматы на деньги
https://simpsons.by/user/KalaAustin/ Игровые автоматы
http://ultfoms.ru/user/MaritaLindley69/ Игровые автоматы на деньги

https://teletype.in/@linksbuilder/emu8iS1jm-p - 1вин зеркало
https://learning.lgm-international.com/forums/users/leliabischof/ - 1вин зеркало
https://learning.lgm-international.com/forums/users/abrahamstatton2/ - 1вин зеркало
http://ultfoms.ru/user/ColumbusAsh/ - 1вин зеркало
http://ultfoms.ru/user/SashaFountain52/ - 1вин зеркало
https://learning.lgm-international.com/forums/users/maziemcquiston/ - 1вин зеркало
https://learning.lgm-international.com/forums/users/patclever06/ - 1вин зеркало
https://learning.lgm-international.com/forums/users/tamelajou589/ - 1вин зеркало
https://remsana.getfundedafrica.com/forums/users/maximiliancolson/ - 1вин зеркало
https://remsana.getfundedafrica.com/forums/users/brigittedonald2/ - 1вин зеркало
https://www.morphonic-records.com/community/profile/isabella1443442/ - 1вин зеркало
https://www.morphonic-records.com/community/profile/scarlettsilvers/ - 1вин зеркало
https://www.morphonic-records.com/community/profile/betseywzo374304/ - 1вин зеркало
https://www.morphonic-records.com/community/profile/zellapaterson16/ - 1вин зеркало
https://remsana.getfundedafrica.com/forums/users/alexandriaroldan/ - 1вин зеркало
https://remsana.getfundedafrica.com/forums/users/wandapappas/ - 1вин зеркало
https://commoncause.optiontradingspeak.com/index.php/community/profile/a... - 1вин зеркало
https://commoncause.optiontradingspeak.com/index.php/community/profile/a... - 1вин зеркало
https://commoncause.optiontradingspeak.com/index.php/community/profile/j... - 1вин зеркало
https://commoncause.optiontradingspeak.com/index.php/community/profile/i... - 1вин зеркало
https://dzen.ru/a/ZnLfEym5uDhzgd9F?share_to=link - 1вин зеркало
https://backlink.mirtesen.ru/blog/43418593274/Polozhitelnyie-i-otritsate... - 1вин зеркало
https://teletype.in/@linksbuilder/emu8iS1jm-p - 1вин казино
https://learning.lgm-international.com/forums/users/leliabischof/ - 1вин казино
https://learning.lgm-international.com/forums/users/abrahamstatton2/ - 1вин казино
http://ultfoms.ru/user/ColumbusAsh/ - 1вин казино
http://ultfoms.ru/user/SashaFountain52/ - 1вин казино
https://learning.lgm-international.com/forums/users/maziemcquiston/ - 1вин казино
https://learning.lgm-international.com/forums/users/patclever06/ - 1вин казино
https://learning.lgm-international.com/forums/users/tamelajou589/ - 1вин казино
https://remsana.getfundedafrica.com/forums/users/maximiliancolson/ - 1вин казино
https://remsana.getfundedafrica.com/forums/users/brigittedonald2/ - 1вин казино
https://www.morphonic-records.com/community/profile/isabella1443442/ - 1вин казино
https://www.morphonic-records.com/community/profile/scarlettsilvers/ - 1вин казино
https://www.morphonic-records.com/community/profile/betseywzo374304/ - 1вин казино
https://www.morphonic-records.com/community/profile/zellapaterson16/ - 1вин казино
https://remsana.getfundedafrica.com/forums/users/alexandriaroldan/ - 1вин казино
https://remsana.getfundedafrica.com/forums/users/wandapappas/ - 1вин казино
https://commoncause.optiontradingspeak.com/index.php/community/profile/a... - 1вин казино
https://commoncause.optiontradingspeak.com/index.php/community/profile/a... - 1вин казино
https://commoncause.optiontradingspeak.com/index.php/community/profile/j... - 1вин казино
https://commoncause.optiontradingspeak.com/index.php/community/profile/i... - 1вин казино
https://dzen.ru/a/ZnLfEym5uDhzgd9F?share_to=link - 1вин казино
https://backlink.mirtesen.ru/blog/43418593274/Polozhitelnyie-i-otritsate... - 1вин казино
https://telegra.ph/Polozhitelnye-i-otricatelnye-storony-igr-onlajn-06-23 1вин казино
https://www.liveinternet.ru/users/voldemar372009/post505983989/ 1вин зеркало
https://xinelo5670.blogocial.com/ 1вин зеркало
https://n7ews777.blogspot.com/2024/06/blog-post.html 1вин зеркало
https://blog51792.wordpress.com/2024/06/23/%d0%bf%d0%be%d0%bb%d0%be%d0%b... 1вин зеркало

333534521312ё=kk=

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

Very good post. I'm dealing with a few of these issues as well..

I was able to find good information from your articles.

These are really impressive ideas in regarding blogging. You have touched some nice factors here. Any way keep up wrinting.

Pages

Add new comment