Subtheming Drupal 8

Submitted by admin on Sat, 11/21/2015 - 21:26

Themes are looking good. Especially subthemes. The small tweaks were managed by subthemeing Bartik which also includes carrying over all the settings from it.

My subtheme fixes the issues with the headings and the position of the logo. It's still a bit of a hack (the colour of the headings is hardcoded in the CSS rather than managed in the Color module (but hey... it's a quick fix)).

The first difference; Themes aren't in /sites/all/themes any more. They've been moved to the top level of the site and now live in /theme.

Twig and Drupal 8 templates

Submitted by Gold on Sat, 11/21/2015 - 18:10

I can see myself having to get to grips with the template system fairly quickly. Out of the box Bartik is not doing what I want it to do. Will have to sort that out. As I understand it though, subthemes are still well supported so extending this shouldn't be that much of an issue.

So, to start with;

Where to from here

Submitted by Gold on Mon, 08/31/2015 - 04:05

I'm wondering if it's time to just relegate this site to being a personal blog. I'm posting work based stuff over on pixelite and intentionally homeless has fallen into disuse also.

Programmatically creating a draft using Workbench Moderation

Submitted by Gold on Thu, 09/04/2014 - 14:46

If you're here after this detail you already know about Workbench Moderation so I won't go into the 2 paragraph explanation about what it is and why you should use it. Hopefully you're here because you're having trouble programmatically creating drafts. This was a stumbling block for me too until I started hunting through the modules to see what was going on in the guts of things. Doing that resulted in a really nice and simple solution.

Injecting a block in a Views page on Drupal 7

Submitted by Gold on Wed, 04/06/2011 - 16:34

Views in Drupal 7 is almost there. There's some things that are borked and some that are quite nice.

I have a View with exposed filters and some of these are taxonomy terms. The trouble is I couldn't figure out how to expose these and have them display as a select element. I found Better Exposed Filters which claims to fix this but at the moment it's D7 support is still being worked on. It's actively maintained though so worth keeping an eye on.

So, I was left with this still being an issue.

Drupal 7

Submitted by Gold on Wed, 02/16/2011 - 18:39

So, Drupal 7 is out and has been for a while now. Despite this we're still stable and haven't seen the rushed release of 7.1 yet which is actually a pretty good sign.

I've seen a few rough edges, but nothing that is a deal breaker so far.

[IH] Drupal: The Card Game

Submitted by Gold on Thu, 05/13/2010 - 13:49

Yesterday @bevanr DMd me a link to a post on Node One where they were talking about sending out free decks of Drupal: The Card Game. The post offered to send out more free decks if you contacted them and asked. Given almost everything I do at the moment is built in Drupal, I'm a gamer and I'm looking for lightweight, small footprint games to travel with I thought I'd ask.

[Full post on Intentionally Homeless]

s.success is not a function

Submitted by Gold on Wed, 05/20/2009 - 22:31

This post is about JavaScript, jQuery and annoying errors that don't seem to have a solution out there. Right, keywords done. Here's the problem and the solution I used;

I was having an issue with a jQuery call that was returning the following error;

s.success is not a function

The code that was generating this was the callback function on the successful return from a getJSON() call. This is the original script;