Drupal

I have to often issue commands like: vagrant up, or vagrant reload and OSX wants to be sure that I know what I am doing so it cleverly asks for my password.  Thanks to the efforts of a very smart coworker, there is a workaround to this problem.

 

First do:
which sed

and replace the /usr/bin/sed below with your path to sed)

These go under cmd alias specification section

Use this command to edit /etc/sudoers (don't do it directly):
sudo visudo

Category: 

Using Drupal 7, I needed to programattically add a useragent field (webform calls these components) and a url field to my webform nid 7477.  The url field is a hidden field of type: Hidden element (less secure, changeable via JavaScript.)  If you leave off the extra array in the url definition, it will be the normal hidden type.  You can see this when you click the edit button for this component.  I hope someone finds this useful.

Category: 

I was mourning the fact that I wasn't in Portland for the Drupalcon and then I found this. 

 

 

I'm so pleased. Rock on Drupal!

Category: 

If you check Drupal 7 module updates and you get messages indicating no available releases found for modules that you know are legitimate.  It usually looks something like this.  The URL is ../admin/reports/updates  There is a quick fix:

Category: 

What a great utility Drush is.  If you don't know, it is a command-line utility for use to do all sorts of amazing things to a Drupal system.  You can easily make a quick database backup with the following command:

drush sql-dump >dbdump.sql

Category: 

On Drupal 7 sites I always spend time in the content view.  That is the one at admin/content.  I usually install the views bulk operation module so I get these cool new views that I can easily tweak.  What a pleasure!  Recently I was on a site that had the administration views module installed.  This replaces the default views for content and comment (and more.)  Unfortunately the link for editing the view that is so handy is turned off.  This

Category: 

Panels tabs are (like so many things in Drupal) pretty easy once you know the exact steps.  Using Drupal 7.20, Panels version 7.x-3.3, Ctools 7.x-1.2.  you can make a page that has horizontal tabs along the top.  It doesn't require any additional modules.

 

Category: 

In this case, we are selling access to nodes with video embedded from vimeo.

I'm assuming Drupal 6 is working and ubercart also.

Category: 

When making a copy of a drupal 7 site, I often need to disable outgoing emails.  I found a useful module called maillog that does the job well.  It also logs all emails so you can easily see what the site is sending out.  You can find it at http://drupal.org/project/maillog

After enabling the module, you can configure it at admin/config/development/maillog

You can disable all email by unclicking the checkbox : Allow the e-mails to be sent.

Category: 

I've been noticing these messages lately on some of my Drupal 6 sites. These popped up any time I saved any content.

warning: strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/Chicago' for 'CDT/-5.0/DST' instead in /var/www/polycotassociates.com/modules/node/node.module on line 814.

Category: 

Pages

Subscribe to Drupal