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

Alena Capossela from Fremont was searching for coursework other than a&g piping fort worth
Sidonia Hindmarsh came across the answer to a search query coursework other than a&g piping fort worth
thesis plagiarism checker online free
thesis topics for world history
custom paper size xp
a ready-made assignment/dissertation on obstetric cholestatis

<a href=https://helpwithdissertationwriting.com/>data analysis dissertation help</a>
<a href=https://domyhomeworkformecheap.com/>essay writing services</a>
<a href=https://writingpaperforme.com/>paper writer online</a>

<a href=http://wbbet88.com/forum.php?mod=viewthread&tid=4960&pid=994076&page=612... i buy an essay online</a> f39c326

You actually make it appear so easy together with your presentation but I find this matter to be really one thing which I think I might by no means understand. It seems too complicated and extremely large for me. I am looking forward for your subsequent post, I'll attempt to get the dangle of it!

What's up, everything is going nicely here and ofcourse every one is sharing facts, that's genuinely good, keep up writing.

Peg Nases from Murrieta was on the hunt for dissertation de management
Jacquetta Streicher stumbled upon the resolution to a research question dissertation de management
legitimate custom writing services
cognitive psychology dissertation ideas
concluding chapter of a dissertation

<a href=https://domycollegehomeworkforme.com/>hire someone to do my homework</a>
<a href=https://dissertationwritingtops.com/>writing dissertations</a>
<a href=https://essayservicehelp.com/>write my paper</a>
<a href=https://writingpaperforme.com/>college paper writers</a>

<a href=https://koreanstudies.com/forum/viewtopic.php?p=36869#p36869>undergraduate coursework for mba</a> 0ff39c3

I just like the valuable info you provide to your articles. I will bookmark your weblog and take a look at once more right here frequently. I am somewhat certain I'll learn lots of new stuff proper right here! Best of luck for the following!

Chelsy Nevill from Bloomington was trying to find national board of examinations thesis
Tish Pinuelas discovered the solution to a search question national board of examinations thesis
help in writing about myself
sample of an argumentative essay help
professional resume writing services in va

<a href=https://helpwithdissertationwriting.com/>essay writings</a>
<a href=https://domyhomeworkformecheap.com/>do my homework online</a>

<a href=https://thecardboard.org/boardnew/showthread.php?tid=16753&pid=234733#pi.... history thesis statements</a> 9c326d6

Miquela Kitterman from Simi Valley was trying to find thesis statement genocide in rwanda
Fredia Simensky uncovered the response to an inquiry thesis statement genocide in rwanda
freelance article writer jobs uk
dissertation binding watford
jesse owens thesis statement
examples of marketing dissertations

<a href=https://custompaperwritingservices.com/>term paper writing services reviews</a>
<a href=https://ouressays.com/>writing a dissertation proposal</a>
<a href=https://helpwithdissertationwriting.com/>writing paper help</a>

<a href=http://45.155.207.140/forum/viewtopic.php?f=7&t=416598>how to write a dissertation in apa format</a> 7b4ae9c

Barbi Shivley from Lorain was on the hunt for college thesis statement template
Therine Potestio stumbled upon the resolution to a research question college thesis statement template
thesis for history of basketball
dissertation music film
nature vs nurture essay help

[url=https://ouressays.com/]resume writing services[/url]
[url=https://argumentativethesis.com/]argumentative essay topics[/url]
[url=https://englishessayhelp.com/]college essay help near me[/url]
[url=https://essayssolution.com/]write an argumentative essay[/url]

[url=http://forum.xpscenery.net/showthread.php?tid=83&pid=1512#pid1512]thesis statement about online games[/url] 0c4980f

Hey very nice blog!

Charlean Kasica from Wilmington was seeking sales and inventory system thesis pdf
Cristi Shroff uncovered the response to an inquiry sales and inventory system thesis pdf
buy essays betty smith by a tree grows in brooklyn
communist manifesto thesis
dissertation awards r36
thesis adviser or advisor

<a href=https://theessayswriters.com/>write my papers</a>
<a href=https://helpwithdissertationwriting.com/>dissertation writers online</a>
<a href=https://writingpaperforme.com/>writing paper help</a>

<a href=http://users.atw.hu/hw-multigaming/shoutbox_content.php>rambos of the road thesis statement</a> 955_fde

Supplementing you already from folks that shed pounds This due reality exogenous oldsters use complement shed kilos they which them burn electricity you and gain from ones and used make the ones some think are. Slimms Gummies worry their health the earlier than shopping those endorsed the ones are nutritional complement marketed as made using weight this supplement viable even The product will located and now not the usage need more There are lousy the usage this The most detrimental that may stand you consume many them detail are also can additionally supplement been their weight loss without the harmful many merchandise. https://www.meine-news.de/eichelsbach/c-sport/slimms-gummies-2024-zuletz...

Faustina Davda from New London was seeking how to write a problem solution thesis statement
Mindy Edmons came across the answer to a search query how to write a problem solution thesis statement
thesis page order
thesis topics computer science engineering

<a href=https://englishessayhelp.com/>i need help writing an essay</a>
<a href=https://essayservicehelp.com/>custom essay writing service</a>

<a href=https://ingazd3wih.com/ar/38087>outsource writing services</a> 7b4ae9c

Alexine Nesler from Green Bay was seeking write dissertation title
Aaren Figiel located the reply to a search question write dissertation title
custom essay and dissertation writing service it the best
best technical resume writing service
good research thesis examples

<a href=https://topswritingservices.com/>write paper service</a>
<a href=https://essayssolution.com/>essays writing service</a>
<a href=https://domyhomeworkformecheap.com/>essay buy</a>
<a href=https://englishessayhelp.com/>medical school application essay help</a>

<a href=https://ceralight.ru/viewtopic.php?pid=759468#p759468>response essay thesis statement example</a> f39c326

Ame Shauger from Waco was in search of thesis on cache memory
Heather Kerper stumbled upon the resolution to a research question thesis on cache memory
cnn buying essays
technical writer jobs detroit mi
help me write an essay in spanish
cruel angels thesis tab

<a href=https://topswritingservices.com/>writing papers</a>
<a href=https://dissertationwritingtops.com/>essay writer</a>

<a href=https://thecardboard.org/boardnew/showthread.php?tid=16910&pid=234837#pi... farming thesis</a> d66958_

Lorne Ginnetti from Lacey was on the hunt for thesis statement examples for the bluest eye
Linea Belinski came across the answer to a search query thesis statement examples for the bluest eye
thesis writing methodology chapter
write my essay cheap uk
dissertation help in atlanta ga
business plan writing services cost windshield replacement

<a href=https://essaytyperhelp.com/>medical school application essay help</a>
<a href=https://helpwithdissertationwriting.com/>dissertation</a>
<a href=https://custompaperwritingservices.com/>pay for papers</a>
<a href=https://theessayswriters.com/>my essay writer login</a>

<a href=https://battletech-mercenaries.com/merc-net/viewtopic.php?f=4&t=7893&p=4... guidelines utm</a> 7b4ae9c

My spouse and I stumbled over here by a different web address and thought I should check things out. I like what I see so now i am following you. Look forward to checking out your web page repeatedly.

Reggie Froedge from Orange was seeking introduction dissertation relation maitre valet
Carlee Liguori stumbled upon the resolution to a research question introduction dissertation relation maitre valet
alzheimer39s thesis statement
choice is the best thesis for a causeandeffect essay
help on macbeth coursework
top 10 essay writing services scams websites

<a href=https://ouressays.com/>cheap research paper writing service</a>
<a href=https://topswritingservices.com/>spongebob writing essay</a>

<a href=https://thecardboard.org/boardnew/showthread.php?tid=24641>cv writing services in pune</a> 39c326d

Hermine Amistoso from Lakewood was on the hunt for turabian manual for writers of term papers theses and dissertations
Konstanze Berberich uncovered the response to an inquiry turabian manual for writers of term papers theses and dissertations
pediatric thesis making
cheap essay writing help

<a href=https://englishessayhelp.com/>paper writer</a>
<a href=https://writingpaperforme.com/>essay buy</a>
<a href=https://ouressays.com/>thesis writing services</a>

<a href=http://foros.acopol.es/viewtopic.php?f=11&t=25916&p=35467#p35467>technical writer north carolina</a> 6d66951

Gisella Opaka from New Orleans was seeking how do you reference a dissertation in apa
Allx Brynga stumbled upon the resolution to a research question how do you reference a dissertation in apa
nih r36 dissertation award
sample acknowledgement in phd thesis

<a href=https://homeworkcourseworkhelps.com/>pay someone to do my homework online</a>
<a href=https://argumentativethesis.com/>research paper</a>

<a href=https://kathymarks.com/best-free-image-optimization-apps-mac?page=17284#... someone write dissertation</a> 09ca0c4

Othilia Ruoff from Tacoma was seeking msc thesis construction project management
Isadora Tacason discovered the solution to a search question msc thesis construction project management
thesis statements for argumentative essays by mark twain
thesis topic related to food technology

<a href=https://dissertationwritingtops.com/>write my essays</a>
<a href=https://payforanessaysonline.com/>pay for writing essay</a>

<a href=https://quentin-perceval.fr/chine/?q=node/91&page=509#comment-5510369>th... summary and conclusion</a> d66950_

Spot on with this write-up, I truly believe that this web site needs a great deal more attention. I'll probably be back again to read through more, thanks for the information!

Normally I do not learn article on blogs, but I would like to say that this write-up very pressured me to try and do so! Your writing style has been amazed me. Thanks, quite great article.

Wanids Gwathney from Asheville was on the hunt for dissertation qualitative forschung
Dot Cantillo stumbled upon the resolution to a research question dissertation qualitative forschung
how to write a outline for a thesis paper
anthropology dissertations examples
ontario psychology undergraduate thesis conference 2012
free custom essay generator

<a href=https://domyhomeworkformecheap.com/>essay writing services reviews</a>
<a href=https://argumentativethesis.com/>thesis help</a>

<a href=https://maple.wowxyz.work/forum.php?mod=viewthread&tid=4587&extra=>article writing service net</a> 1_e49bf

Thank you for some other excellent article. Where else may anyone get that kind of info in such an ideal way of writing? I've a presentation next week, and I'm on the look for such information.

Floria Wanlass from Mobile was in search of steps to write a good thesis statement
Neely Zawacki came across the answer to a search query steps to write a good thesis statement
thesis title descriptive research
dissertation binding in manchester

<a href=https://ouressays.com/>research proposal in education</a>
<a href=https://payforanessaysonline.com/>buy an essay online</a>
<a href=https://dissertationwritingtops.com/>undergraduate dissertation</a>

<a href=http://sp.60333.ru/viewtopic.php?f=10&t=2851&p=343043#p343043>dissertation contestation filiation</a> c09ca0c

Quality articles is the secret to be a focus for the users to go to see the web page, that's what this web page is providing.

Lenka Garrison from Fayetteville was searching for drug thesis statement examples
Nicoli Poths came across the answer to a search query drug thesis statement examples
electronic dissertation social psychology
dissertation conscience terminale
overcoming procrastination getting organized to complete the dissertation

<a href=https://domycollegehomeworkforme.com/>coursework help uk</a>
<a href=https://helpwithdissertationwriting.com/>dissertation data analysis help</a>
<a href=https://payforanessaysonline.com/>essay writing services</a>
<a href=https://writingpaperforme.com/>writing paper</a>

<a href=https://dev.t-firefly.com/forum.php?mod=viewthread&tid=5797&pid=456642&p... to write a biology thesis proposal</a> b4ae9c0

Brear Machalek from Saginaw was on the hunt for introduction for information technology thesis
Sandie Brokaw discovered the solution to a search question introduction for information technology thesis
print your dissertation london
how to write a good literature thesis
project management dissertation thesis topics

<a href=https://custompaperwritingservices.com/>where can i buy resume paper</a>
<a href=https://topswritingservices.com/>essay</a>
<a href=https://homeworkcourseworkhelps.com/>homework help cpm</a>

<a href=https://hawkinsmotorcoach.com/forums/thread-21828.html>network on chip master thesis</a> 80ff39c

Corey Stater from Milwaukee was in search of custom gravatar thesis
Pepi Gryniuk uncovered the response to an inquiry custom gravatar thesis
patricia cebula dissertation
a good thesis statement for the things they carried
coursework on resume name
quality custom term papers

<a href=https://homeworkcourseworkhelps.com/>pay to do my homework</a>
<a href=https://essayssolution.com/>write my essay helper</a>
<a href=https://englishessayhelp.com/>paper writing services</a>
<a href=https://essaytyperhelp.com/>essay writing service</a>

<a href=http://wbbet88.com/forum.php?mod=viewthread&tid=5210&pid=993188&page=309... of arc of justice</a> 26d6695

Gipsy Darco from Louisville was seeking dissertation examples history of art
Janessa Weeber came across the answer to a search query dissertation examples history of art
une bonne introduction de dissertation
thesis in economics in the philippines

[url=https://englishessayhelp.com/]essay writing help online[/url]
[url=https://writingpaperforme.com/]thesis paper[/url]

[url=http://forum.mubeta.com.br/thread-402-post-30181.html#pid30181]thesis on red badge of courage[/url] ae9c09c

Yesterday, while I was at work, my sister stole my apple ipad and tested to see if it can survive a 25 foot drop, just so she can be a youtube sensation. My apple ipad is now destroyed and she has 83 views. I know this is entirely off topic but I had to share it with someone!

Talia Racanelli from Tucson was on the hunt for grant writing services fee
Rodi Jaffray located the reply to a search question grant writing services fee
master thesis human resource management
sujet dissertation poesie bac
thesis paper on facebook

<a href=https://ouressays.com/>term paper</a>
<a href=https://helpwithdissertationwriting.com/>custom writing</a>
<a href=https://topswritingservices.com/>essay writing meme</a>
<a href=https://writingpaperforme.com/>write papers</a>

<a href=https://aopvp.com/forum.php?mod=viewthread&tid=385&pid=7632&page=1&extra... graduate thesis topics</a> 66957_7

Pages

Add new comment