User login

How to

Information on how to do something... anything.

Change the date of a node, using the database

Change the date of a node, using the database. XYZ represents the node ID (NID)

cd /vagrant
drush sql-cli
update node set changed = 1450958544 where nid = XYZ;
update node set changed = 1451563344 where nid = XYZ;

This example sets the time for 2 nodes, the first to 47 weeks ahead and the second update line sets the timestamp 50 weeks ahead of todays date, 1/28/2015

http://www.epochconverter.com/

Add a replacement pattern token for a Views field rewrite results

Views fields offer the opportunity to "Rewrite results: Rewrite the output of this field". The option further specifies "Enable to override the output of this field with custom text or replacement tokens." It then provides a textarea with the instruction: "The text to display for this field. You may include HTML. You may enter data from this view as per the 'Replacement patterns' below." The replacement patterns, in turn, have the introduction: "The following tokens are available for this field.

Day-to-day usage of Gnucash for a Worker Cooperative

To view an account with all its subaccounts, go to the main Accounts tab, right click on the account you want to view, and select "Open SubAccounts".

For example, to see the checking account including each member's budget, go to Assets:Current Assets:DCU Checking and Edit > Open SubAccounts (or right/option click as mentioned).

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

Set old_type if you want to programmatically update a node type / machine name.

(This is not about changing the type of a node, but changing what type is called on the machine-info level.)

$type->old_type is what node_type_save() checks for when updating a node type, if it's not set it will create a new node type even if orig_type is set to an existing bundle. So really all you need to do right before saving a modified content type is set the old_type to the orig_type, such as:

Configure Memcache on a Drupal site

This has to be done for each site. This is after installing Memcache on your server.

Memcache module

Then, in settings.php, add:

Remove the delete icon from Tomboy notes' toolbar

I think it used to be possible, fairly certain i had removed it.

Not surprised that Gnome help doesn't have how to remove or add toolbar buttons or otherwise customize the icons on notes.

But i am surprised that https://help.gnome.org/users/tomboy/stable/index.html.en does not say anywhere how to get involved at all, how to contribute, nor how to ask for help or support.

Eventually found this:

Google tip for searching Drupal modules

In addition to restricting a google search to site:drupal.org you can further restrict it to site:drupal.org/project

Just put your keywords in the google search bar followed by site:drupal.org/project

https://www.google.com/search?q=example+site%3Adrupal.org%2Fproject

MySQL Query to Get Quick Overview of Nodes by Content Type

mysql> SELECT nt.name, nt.type, COUNT(n.nid) FROM node_type nt LEFT JOIN node n ON nt.type = n.type GROUP BY (nt.type);

Exporting views to files to be managed by version control: Drupal 7

The trick to somewhat Drupal 8-esque configuration management in Drupal 7, when it comes to Views, is to make your view defined in the user interface to be defined by a module instead. This is done with hook_views_default_views().

From Michelle Lauer's Views chapter in the Definitive Guide to Drupal 7:

Editing a subscriber's information in Mailchimp

First, note that people can edit their own information in Mailchimp, and of course add it, so be sure you know it is incorrect before you change it.

Syndicate content