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
Lovely facts. Thank you!
read this https://luclaeven.com/articles/m-hy-lnw-lthlth-llkhtyr-m-t-ryft-lkl-mnh
why not find out more https://ivynativecouncil.org/articulos/son-los-comerciantes-fx-sitio-de-...
Really all kinds of terrific knowledge!
why not check here https://doddfranksummary.com/soft/torchlight-tiene-plataforma-de-comercio
look at this website <a href=https://dinnerstates.com/soft/como-eliminar-una-presentacion-de-una-unid... you agree</a>
Hi i am kavin, its my first occasion to commenting anyplace, when i read this paragraph i thought i could also make comment due to this brilliant post.
Hi, i read your blog from time to time and i own a similar one and i was just curious if you get a lot of spam comments? If so how do you prevent it, any plugin or anything you can suggest? I get so much lately it's driving me insane so any help is very much appreciated.
Good day! This is kind of off topic but I need some guidance from an established blog. Is it hard to set up your own blog? I'm not very techincal but I can figure things out pretty quick. I'm thinking about creating my own but I'm not sure where to start. Do you have any points or suggestions? Cheers
Cheers! I value it!
linked here https://serintcomp.com/posts/forex-broker-partner
more tips here https://aeshel.com/blog/klnr-strtyjy-lkhyrt-lthnyy
hello!,I really like your writing so much! percentage we keep in touch extra about your article on AOL? I require a specialist on this area to solve my problem. May be that's you! Looking ahead to look you.
Cheers. Fantastic information!
more.. https://luclaeven.com/questions/l-ml-mn-lmnzl-wzyf-fy-mbtwr-dwn-stthmr-l...
knowing it https://luclaeven.com/blog/hl-hnk-qym-wsyt-ntshr-sfr
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
Helpful postings. Regards!
i loved this https://dinnerstates.com/blog/retiro-de-una-cuenta-demo-es-posible
over here <a href=https://golabstesting.com/Trading/120-seconds-binary-options>discover more here</a>
You've made your position quite effectively!!
next page <a href=https://serintcomp.com/posts/debit-card-cashback-news-update>you can try these out</a>
click for info https://brainzillakids.net/questions/hwawei-andeuroideu-aeb-eoddeon-jong...
Appreciate it, An abundance of info.
this link https://doddfranksummary.com/articulos/zeromq-trading-system-reviews
visit this web-site https://laionland.com/guides/kyfy-tqlyl-hjm-lkht-tryq-shl
Seriously a lot of helpful information!
click here to find out more <a href=https://aeshel.com/guides/2652-nzm-ltdwl>extra resources</a>
read more https://fullonzen.com/articles/how-do-i-download-and-install-wifi-driver...
Awesome write ups. Cheers!
web site https://aeshel.com/blog/lfwrks-lrbh-hsb-lfwrmwl-lhr
check out here https://linuxnmr.org/preguntas/pruebas-de-videojuegos-trabajo-desde-casa...
These are really fantastic ideas in concerning blogging. You have touched some nice things here. Any way keep up wrinting.
Amazing tons of useful data!
linked here <a href=https://serintcomp.com/blog/what-is-the-crypto-to-buy-now>go to this web-site</a>
find more info https://clemsonrf.com/guides/indoyi-obsyeon-manryoe-gwanhan-modeun-geos
If some one desires expert view on the topic of blogging after that i recommend him/her to pay a quick visit this weblog, Keep up the pleasant work.
Terrific material. Thanks.
learn more here https://aeshel.com/software/m-tsm-lgny-bdwn-klmt
site link https://luclaeven.com/questions/wzyf-khtssy-tgdhy-msjl-mn-lmnzl-bdwn
Thanks! I appreciate this.
check out this site https://linuxnmr.org/articulos/a-quien-compraron-los-piratas-por-rich-hill
you can check here https://aeshel.com/guides/rybl-hl-lmhkm-thdyth-lywm-lyf-twytr
Nicely put, Thanks a lot.
discover more https://doddfranksummary.com/preguntas/mt4-no-hay-error-de-conexion
have a peek at this site https://ivynativecouncil.org/soft/media-movil-r-proyecto
With thanks, Awesome information.
see here https://luclaeven.com/blog/l-b-lfwrks-m-rs-lml-lhr-m
try this website https://linuxnmr.org/articulos/cuanto-es-100-dolar-a-naira
Hey there! Someone in my Facebook group shared this site with us so I came to look it over. I'm definitely loving the information. I'm book-marking and will be tweeting this to my followers! Great blog and terrific design.
Quality content is the crucial to interest the users to visit the web site, that's what this web site is providing.
Incredible quite a lot of very good advice.
blog link https://dinnerstates.com/blog/entendiendo-la-reserva-forex-de-pakistan
click now https://serintcomp.com/blog/what-is-h1-m1-vs
What's up, this weekend is nice designed for me, because this occasion i am reading this impressive educational piece of writing here at my house.
I do accept as true with all the ideas you have introduced on your post. They're really convincing and can definitely work. Still, the posts are very short for beginners. Could you please extend them a bit from subsequent time? Thanks for the post.
Thanks a lot! Valuable stuff.
additional resources <a href=https://aeshel.com/blog/hsb-strtyjy-tdwl-lywrw-dwlr>learn here</a>
read review https://doddfranksummary.com/soft/terminologia-basica-de-forex-para-dummies
Nicely put. Thank you.
visit website https://fullonzen.com/blog/average-life-of-a-hedge-fund
redirected here https://milesnice.com/blog/lywm-lkhyr-ltdwl-khyrt-lmwshr
This blog was... how do I say it? Relevant!! Finally I've found something that helped me. Kudos!
Thanks for one's marvelous posting! I certainly enjoyed reading it, you may be a great author.I will always bookmark your blog and will eventually come back at some point. I want to encourage that you continue your great work, have a nice afternoon!
Appreciate it! A lot of posts.
go https://milesnice.com/blog/dlt-khyrt-ltdwl-bltb-mjn
try this web-site https://golabstesting.com/Trading/td-ameritrade-options-fees
First of all I would like to say fantastic blog! I had a quick question which I'd like to ask if you don't mind. I was curious to find out how you center yourself and clear your head before writing. I've had trouble clearing my mind in getting my ideas out there. I do take pleasure in writing but it just seems like the first 10 to 15 minutes are usually wasted just trying to figure out how to begin. Any recommendations or hints? Appreciate it!
You actually suggested it adequately.
go to the website https://aeshel.com/blog/hmsh-lfwrks-ystkhdm-lm-n
find out more <a href=https://clemsonrf.com/soft/dalreo-gagyeog-oneul-2024-nyeon-1-weol-7-il-i... more info</a>
WOW just what I was searching for. Came here by searching for %keyword%
This is nicely put! .
you can find out more https://luclaeven.com/guides/ns-lfwrks-qym-l-tlt
here https://luclaeven.com/blog/hyth-ltbdl-l-mlt-fy-lybn-rdyt
Kudos. I enjoy it!
read what he said https://fullonzen.com/forex/what-is-iv-in-trading
describes it https://laionland.com/articles/kyfy-khtyr-fdl-tlb-ndrwyd-mqrn-wtsnyf-2022
You have made your point quite well!!
additional info https://fullonzen.com/forex/why-are-cds-less-risky
click this site https://linuxnmr.org/blog/cryptonight
With thanks. A lot of tips.
recommended reading https://doddfranksummary.com/preguntas/investopedia-forex-walkthrough-book
do you agree https://linuxnmr.org/soft/que-es-la-media-movil-perpetua
Hi there! This blog post couldn't be written any better! Looking through this article reminds me of my previous roommate! He always kept talking about this. I will send this article to him. Fairly certain he'll have a very good read. Thanks for sharing!
Hi there mates, fastidious post and pleasant arguments commented at this place, I am actually enjoying by these.
Thanks for ones marvelous posting! I actually enjoyed reading it, you might be a great author.I will always bookmark your blog and may come back someday. I want to encourage you to continue your great posts, have a nice day!
This is nicely expressed! !
latest blog post https://dinnerstates.com/preguntas/como-aumentar-el-plazo-de-pago-en-el-...
find more information https://golabstesting.com/binary/top-forex-prop-trading-firms
I was curious if you ever considered changing the layout of your blog? 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 one or 2 images. Maybe you could space it out better?
You really make it seem so easy with your presentation however I in finding this matter to be actually something which I believe I might by no means understand. It sort of feels too complicated and extremely wide for me. I'm looking forward in your next post, I'll try to get the hold of it!
Seriously loads of valuable info!
on the main page [url=https://milesnice.com/articles/gn-fwrks-lrsm-lbyny-s-r-lsrf]try this out[/url]
internet https://laionland.com/questions/brqy-lkwntys-dht-lwjh-lmtgyr-mn-hdh-wmdh...
Regards. A good amount of write ups.
secret info https://golabstesting.com/Trading/work-from-home-jobs-fairfield-ohio-loc...
why not look here <a href=https://luclaeven.com/articles/m-hy-strtyjyt-lkhyrt-ltqlbt-mnkhfd>you could try these out</a>
Great weblog here! Additionally your site rather a lot up very fast! What host are you the usage of? Can I am getting your affiliate hyperlink on your host? I want my site loaded up as quickly as yours lol
Good info. Thanks a lot.
browse around this site <a href=https://doddfranksummary.com/articulos/a-que-hora-cierra-la-sesion-en-nu... beginners</a>
site web <a href=https://clemsonrf.com/guides/jeongi-tob-namja-manhwa>this hyperlink</a>
Excellent info. Appreciate it.
more info here https://milesnice.com/software/fdl-tnzyl-lbrmjyt-lhr-shr-lfwrks-mjn
read this https://serintcomp.com/faqs/stock-options-time-value
Information well utilized..
you could try this out <a href=https://aeshel.com/software/wzyf-lmby-t-lmbshr-mn-lmnzl>my latest blog post</a>
click here to find out more https://doddfranksummary.com/articulos/esta-fxpro-regulado-en-ee-uu
Pages
Add new comment