Blog

Thu, 01/31/2013 - 20:43 by Chris Burge

One of the challenges of migrating content into a new Drupal site is the formatting that comes along with copied text, whether it comes from existing HTML or from a Word document.

The solution is to strip all formatting during pasting. It may take a little extra effort to reformat content in the WYSIWYG editor; however, the errant formatting is eliminated.

Force Plain Text Paste in CKEditor with Drupal WYSIWYG by using WYSIWYG’s ‘hook_wysiwyg_editor_settings_alter’ hook and CKEditor’s ‘forcePasteAsPlainText setting’.

Mon, 01/14/2013 - 23:19 by Chris Burge

Redirecting non-WWW traffic (e.g 'example.com') to WWW (e.g. 'www.example.com') using IIS 6 requires adding a ‘Site Binding’ and adding a ‘URL Rewrite’.

Why Redirect Traffic to a Single Domain?

Google clearly states in Preferred domain (www or non-www)

[W]e may treat the www and non-www versions of the domain as separate references to separate pages

In other words, if you’re serving up non-www and www versions of your site, then you may be damaging your PageRank. Google allows users to specify a ‘preferred domain’ for indexing with its Webmaster Tools; however, there are still other search engines on the World Wide Web and not all clients user Webmaster Tools. It's important that the redirect is a 301 (permanent) redirect.

Fri, 11/30/2012 - 16:04 by Chris Burge

When you load your Drupal 7 site's 'Status report' page, you may see that 'Upload progress' is 'Not enabled':

Your server is capable of displaying file upload progress, but does not have the required libraries. It is recommended to install the PECL uploadprogress library (preferred) or to install APC.

Why install the PECL uploadprogress library?

When uploading a file to a file field, you are probably accustomed to seeing the default throbber progress indicator:

throbber upload progress indicator

But this is hardly a progress indicator as it doesn't provide any information regarding progress. With the uploadprogress library installed, a more descriptive progress indicator is now available:

progress bar upload progress indicator

Pages

Subscribe to Blog