This is a cool feature. You can mark files as “yes, I know this is tracked by Git, but I don’t want my changes committed.”
For example, there’s a config file that’s checked in. You need to make local edits to test with. However, you often accidentally commit those changes (you forget). But you could tell Git to ignore changes in this file. Let’s say we have a file config.php that we want to edit locally and leave edited.
Continue reading “Git Ignore Tracked File”
Need an array of user roles in your Drupal 8 site? Say goodbye to
user_roles(), say hello to
This function will return an associative array with the role id as the key and the role name as the value.
Continue reading “Drupal 8: Get an Array of User Roles”
Looking for how to create new module permissions in Drupal 8? Look no further,
$module.permissions.yml to the rescue!
In Drupal 8 permissions are now defined in
$module.permissions.yml file instead of using
Continue reading “Drupal 8: Create Module Permissions”
Learn to track page performance, user behaviors, personas and more with the power of GA Custom Dimensions.
Creating audience segments is one of the most important things you can do with an analytics tool. When segmentation rules do a good job of highlighting motivations of visitors, behaviors of each segment help make sites become more relevant to each group. This will increase the likelihood that your site will deliver on your goals.
GA already lets you segment more than 130 dimensions. With Universal Analytics, Custom Dimensions (aka. Custom Variables) can be used to track even more. Once you know how to use them, they’ll become a powerful tool in your analytic arsenal. Continue reading “GA Custom Dimensions & Custom Reports”
In the past four years there has been an explosion of new technologies in front-end development. We are inundated with new projects like Bower, Cucumber, Behat and KSS. It is a lot to take in. At the past two Drupalcons there have been sessions about this overload, My Brain is Full: The state of Front-end developement. Essentially those sessions are asking “What the hell is going on?”
Continue reading “Automating Styleguides with Styleguide-Driven Development”