User login

How to

Information on how to do something... anything.

How to create a Feature without the initial download through the UI

If you hate downloading and unzipping the initial feature you create as much as i do, because you haven't bothered with that foolishness since Drush, this post is for you.

This is the minimal information needed (from my experimentation) for Features to recognize your module as a Features module. Then you can add variables and other features through the UI (or Drush), and drush fu feature_example to update your module code (where feature_example is the name of your feature) and fu stands for features-update.

In feature_example.info:

Preprocess from a module: removing the content author from Drupal 7 search results

All, not just most, but all the content on a particular site was set to be posted without showing the by-line or submitted by text. Given this requirement, it makes no sense to have search results show the user that submitted the content, every time. This can be themed away in search-result.tpl.php or it can be removed with a pre-process function as shown below.

You can do this from a module or a theme, where 'example' is the system name of that module or theme:

Enhance your prompt with git information

Git provides a series of enhancements for the bash prompt. It can display the current branch when inside a working copy. Here's an example from my machine:

[email protected]:~/Documents/Projects/Drupal/test(master *)$

It shows the branch name and indicates by an asterisk that I have uncommitted changes.

Working with Agaric Easy On-ramp: Browser Certificate

Click the following link:

http://www.cacert.org/certs/class3.crt

And accept the certificate for all purposes.

(For more information and for Internet Explorer, see the CACert.org site.

How to Write a Bug Report

The official! How to make an issue report, part of the official guide to using the issue queue.

See also Report a problem in the Troubleshooting guide.

And the Views issue queue guidelines which are comprehensive and rigorous and puts the entire process in one document, and almost everything can be directly or with minor adaptation applied to other projects.

Use Drush to sync files from one site to another

Believe it or not, this is the function you want:

core-rsync (rsync) Rsync the Drupal tree to/from another server using ssh.

For example:

drush rsync @example.stage:%files @example.local:%files

Can't do remote to remote though.

Pushing our local repository to Gitorious


git checkout master
git remote add origin [email protected]:remarkup/remarkup.git
git push origin master

This was for a module named "remarkup" as covered in http://definitivedrupal.org/node/90

Increase main partition size in Ubuntu within VMWare Fusion

That was well nigh impossible. GUI fail, on gparted's part.

These steps won't be 100% complete because it's 7:15am and i spent the last hour frying my brain on this stuff (after the brain unilaterally called a break about 2:15am and i fell asleep), but they do fill in some gaps other resources out there don't quite cover. Some even seem to (falsely) suggest that unallocated space must be made into its own partition first. Here are some of the better links; my (final working) steps below.

Syndicate content