User login

How to

Information on how to do something... anything.

Configuring Faceted Search

Faceted search isn't too hard to configure; Instead of using views to add the exposed filter, use the faceted search page to 'add an enviroment' and set whatever search methods want and set the 'display' to the view and urls to, for example, baseurl news, then the results appear on news/results/<arguments>

Resolution

Translating taxonomy terms in Drupal

The use case Agaric runs into most often is how to simply translate the terms, and show the correct translation for the language the content and/or the sitewide language is in (not have multiple vocabularies that apply different terms in different languages).

A thread with a great deal of answers:

Drupal 6: How to translate taxonomy terms?
http://drupal.org/node/335205

The Drupal core issue, including a nice summary by catch sadly missing the links:

Twitter commands... Get your Tweet on

Use the commands listed below from your phone, the web update box, or your favorite third party application.

Making Drupal nids into edit link from your command-line SQL

I wanted to call this post "automating manual changes" but it's hard to get across the meaning of automating parts of the process that keep it manual.

Stolen directly from Growing Ventures Solutions post on migrating a messy Drupal 5 site to D6. (Primarily this post provides you with copyable text where there's had an image.)

Stop phpMyAdmin from logging you out in your own local environment (Ubuntu)

vi /etc/phpmyadmin/config.inc.php

You may need to use sudo; vim will warn you if you try editing a read-only file.

Edit an existing LoginCookieValidity setting if any, or (as in our case) add the following to the bottom of the file.

(Note that in vim you can search with /LoginCookieValidity and, if finding nothing, go to the end of the file with :999 -- actually that's go to line 999 which is just as good in this case, there's a command to do it for real too). Then you can press i to insert text:

Bringing SVN to a particular revision; useful with DBScripts

Checkout into a new directory:

svn checkout -r 1310 http://svn.repositoryurl.example.com/path/to/repos newlocalfolder
# Checks out a new working copy at r1310

Or update a working copy to a given revision number:

cd local-folder-for-repo
svn update -r 1310
# Updates an existing working copy to r1310

(Note: You cannot make changes and commit from an old checkout like these.)

Using Git submodules to share modified Drupal modules across sites

This reference is currently somewhat specific to Agaric's setup. We currently use Drush to update modules rapidly on a per-site basis (rather than updating a module in a central location and pushing it to the sites that use it), but certain modules have special needs (extra files, a patch that needs to be applied and hasn't been committed to Drupal.org version control yet) and when these modules have to be used on multiple sites, we can save time by bringing them in as submodules. Here are the notes from the first time we did this.

Having your Git and your SVN too

Via Stefan:

Kathleen wrote an email with the three commands you need.
git-svn fetch -s svn_repo
first it's git-svn clone -s ...
you can update it with git-svn fetch
and with git-svn rebase you can merge svn updates to your git workdir
and git-svn dcommit commits to subversion

Resolution

Register a channel on IRC

I did this (in the agaric room, but I think it can be done anywhere):

/msg chanserv REGISTER #agaric secretpass AgaricDesignCollectiveChatRoom

And got this:

Debugging errors in Drupal or anything running on Apache

Had occasion to do a quick (read: emergency) debug session for a live site today, and as I remembered the steps for a change, wandering around on a server not our own, I share with them with the world repackaged as a debugging lesson:

Syndicate content