Quantcast
Channel: Open Data - Benjamin Melançon
Browsing all 39 articles
Browse latest View live

Git remote branches are different on my local compared to server

Searched words:  git remote branches out of date The local checkout on my computer and the one on the dev server are looking at the same Git repository, but the results of git branch -a (show all...

View Article



PHP Arrays plus symbol (+) syntax

Searched words:  php array plus syntax array addition PHP arrays += operators array union http://www.php.net/manual/en/language.operators.array.phpWith the $array1 + $array2 syntax, anything with a...

View Article

Shaping Drupal's Future (presentation description)

Searched words:  Presentation at DrupalCampNYC 10 and reprised at Western Massachusetts DrupalCamp 2012 Drupal does not belong to the Drupal Association. It does not belong to Node One, Phase Two,...

View Article

Using Views DataSource and Feeds to pull content from one site to another......

Searched words:  multivalue field import with feeds Disclaimer: This is a should-be-deprecated approach, both Views DataSource and Feeds can be replaced with better options, such as Services or RestWS...

View Article

Set a git commit message in bash but also go to Vim for further editing

Searched words:  pass a parameter to git commit A colleague insists that messages abide by the 72 character limit advisory, and i want to change my habit to get the files-changed and, just as...

View Article


How to fetch a file at a URL and set it as the default image in an image field

Searched words:  drupal 7 file save from url drupal get current site URI There's two separate cool things here that you might want to do. One, simply know how to save a file from a URL (there's a...

View Article

Define and Use a JQuery Plugin as a Helper Function for Drupal JavaScript

Searched words:  define and use function in jquery abstract javascript code Here's the basics of defining and using a JQuery plugin within the context of Drupal.This is definitely not the best and...

View Article

Command line Git on Windows

Searched words:  command line git eclipse aptana git command line windows msysgit compatible with egit eclipse mysgit mysisgit misysgit A principal at Agaric regrettably uses Microsoft Windows as a...

View Article


move user search tab from search/user to admin/people/search

Searched words:  drupal 7 user search permission move user search tab from search/user to admin/people/search Drupal 7 Drupal 7 move a menu item to a new pathAgaric decided to make a contributed module...

View Article


Overriding a string the second-simplest way in Drupal 7

Here's the situation: You don't need administrator-customizable strings like the String Overrides modules provide, but you'd like the changes in a more share-able (or consistently version controlled)...

View Article

Setting up a new Ubuntu computer for Drupal work, Agaric style

Create an SSH keyssh-keygenSend a copy of the public key to an agaric with access to the test server to add it there. Read more about setting up public keys and agent forwarding.Get DrushPer...

View Article

Set login name to use for SSH per host

Searched words:  changed usernames bash git config ssh use different username for specific host As a completely hypothetical example, suppose you boneheadly thought it would be nice to standardize your...

View Article

Powering Your API with Drupal 8

Searched words:  backbone.js drupal 8 These notes accompany a presentation given at BioRaft Drupal Nights and at NYCcamp.The image-heavy (but often context-light) presentation slides are on...

View Article


Getting started with Behat testing for Drupal

Searched words:  behat mink extensions features scenarios testing user stories Behat is a tool to support behavior-driven development in PHP. Behavior-driven development, in turn, is a set of practices...

View Article

How to programmatically rename a content type (change node type machine name)

Searched words:  drupal programmatic rename content type drupal programmatic change machine name of content type drupal drupal 7 update node type machine-readable name Set old_type if you want to...

View Article


Add a replacement pattern token for a Views field rewrite results

Searched words:  views rewrite results add tokens add token to option in Drupal Views rewrite field views facet api pretty paths drupal Views fields offer the opportunity to "Rewrite results: Rewrite...

View Article

Setting breadcrumbs to exactly what you want

Searched words:  which hook to alter breadcrumbs custom breadcrumbs Adding breadcrumbs to a node In Drupal it is quite easy to set breadcrumbs with the function drupal_set_breadcrumb(), which takes an...

View Article


How to get the base path for your Drupal 8 site in a Twig template

In page.html.twig you will have a working {{ base_path }} variable. Why it isn't available in every template, i have no idea. As i think it should be and everything else looks messy, my preferred...

View Article

Give custom blocks template suggestions by type and views blocks by view ID

<?php/** * Implements hook_theme_suggestions_HOOK_alter() for blocks. */function kidneys_theme_suggestions_block_alter(array &$suggestions, array $variables) {  if...

View Article

Easily add content with update hooks: use default content module exports to...

An approach for keeping content that is added as part of development synchronized with test and production environments is to use the Default Content module to export the content. It's built for the...

View Article
Browsing all 39 articles
Browse latest View live




Latest Images