Getting started with Git (for Drupal) on Windows
This is a step-by-step guide to getting GIT working in Windows.
Note that what follows a $ is what you should type after the BASH $ command prompt.
I recommend taking a look at this great set of video tutorials about git.
Download and install git for Windows here.
Signup for github.com to store your git repositories conveniently online. (Micro service is $7/month at time of writing, 22/9/12) Alternately, bitbucket.org provides free private git repositories for up to five users.
Sign into the github application with your github.com account at the top right of the application window.
Create a new repository in the github application and make the first commits that the github application prompts you to: .gitattributes and .gitignore.
Configuring git on your local server
Make sure that git is installed on your server. I did this by installing the git web application in the Webfaction (my host) control panel.
Open the gitbash program. This will give you the $ command line.
Add your name: $ git config --global user.name “Your Name”
Add your e-mail: $ git config --global user.email “your.email@example.com”
See the details that you have entered: $ cat ~/.gitconfig
Custom theming: Add html5 placeholder attribute to a webform component in theme
You can add an html5 placeholder attribute in your theme using a preprocess hook. Here's an example for an email component:
<?php
function THEMENAME_preprocess_webform_email(&$variables) {
$variables['element']['#attributes']['placeholder'] = t('Email Address');
}
?>Transliteration
Transliteration provides a central transliteration (romanization) service to other Drupal modules, and cleans file names during upload by replacing unwanted characters.
Generally spoken, it takes Unicode text and tries to represent it in US-ASCII characters (universally displayable, unaccented characters) by attempting to transliterate the pronunciation expressed by the text in some other writing system to Roman letters.
According to Unidecode, from which most of the transliteration data has been derived, "Russian and Greek seem to work passably. But it works quite bad on Japanese and Thai."
In Drupal 8 core
Transliteration is part of Drupal 8 core. See #567832: Transliteration in core.
Install
Install the module in the usual way
If you are installing to an existing Drupal site, you might want to fix existing file names after installation, which will update all file names containing non-ASCII characters. However, if you have manually entered links to those files in any contents, these links will break since the original files are renamed. Therefore it is a good idea to test the conversion first on a copy of your web site. You'll find the retroactive conversion at Configuration and modules >> Media >> File system >> Transliteration.
Configure
Read moreResources for sprint planners: How to plan a sprint
Background: One Issue many tasks
- Description of "needs" tags and Issue tags general guidelines
- Contributor task documentation pages
- Table of tasks and contributor task docs grouped by tool set.
Community Tools
Community Tools Workshop Curriculum is a resource for sprint leads to put on a workshop as part of their sprint. The Drupal Community Tools and Core Mentoring Guide collects the relevant videos.
Preparing for and running a sprint
Use core mentoring
Sprint organizers and mentors can gain experience through Core Contribution Mentoring and the Drupal Ladder.
Sprint attendees can prepare for a sprint and get support continuing after a sprint by participating in Core mentoring and the Drupal Ladder.
Use the drupal office hours tool
Read moreResources for mentors
Core policies and processes
- Using the issue queue: http://drupalize.me/videos/getting-started-issue-queue
- The review process:
- http://core.drupalofficehours.org/reviewer-instructions
- http://drupal.org/patch/review
- http://xjm.drupalgardens.com/review-guide#checklist
- http://core.drupalofficehours.org/reviewer-notes
- The core gates, particularly the testing gate: http://drupal.org/core-gates
- The backport policy: http://drupal.org/node/767608
- Issue thresholds: http://drupal.org/node/1201874
Git
- Creating a feature branch: http://drupal.org/node/1054616
- Applying a patch: http://drupal.org/patch/apply
- Creating a patch: http://drupal.org/node/1424598
- Creating an interdiff: http://drupal.org/node/1488712 or http://xjm.drupalgardens.com/blog/interdiffs-how-make-them-and-why-they-...
- Using basic commands like git diff, git log, git branch, and git status to understand the state of their git repository: http://drupal.org/patch/reroll
- Videos: http://drupalize.me/videos/test-patches, http://drupalize.me/videos/write-patch
Additional resources
Read moreinsert inline images using wysiwyg and ckeditor
The Picture module allows you to use picture groups created with inline image inserted in body field with WYSIWYG or CKEditor modules.
Configuration
Picture settings
Navigate to Picture settings (admin/config/media/picture/ckeditor) and enable the picture groups wich will be available in the ckeditor (the library) image dialog box.
You can set for each group his weight (in the select list) and the fallback image style
Filter Text format
Navigate to the text format (admin/config/content/formats/full_html for the Full HTML Format) on wich you want use picture module and enable the filter Make images responsive with the picture module.
You have to move Make images responsive with the picture module below Convert line breaks into HTML (i.e. <br> and <p>) if it is enabled, otherwise you'll get empty lines above the picture.
Plugin WYSIWYG
Navigate to the WYSIWYG profiles (admin/config/content/wysiwyg/profile/full_html/edit) and enable the plugin Responsive images with the picture module.
Read more