Drupal 7 - A Baker's Dozen!

Boiling down the zillion hours of D7 development into a short list of important changes isn't practical, so consider this a starting point rather than a comprehensive list.

In a Drupal view, one of the presentation options for a selected field is to have the field be a link to its node. What if you need the label to also be a link? No problem! Another option is to rewrite the output, so you can manually create the links using HTML, and specify the replacement pattern of [nid] for one. The only problem is that when a field is a link to its node, the URL that appears is the path alias, mydomain.com/my-content, but when using [nid] in a manually constructed link, the resulting URL is mydomain.com/node/##.

So the Content menu page (admin/content) on a stable production site loaded, and the only menu item listed was Comments...yet, the admin menu in the left nav listed all the usual suspects. WHAT was this?!

If you convert a Drupal site to a multi-site configuration, you will very likely notice a disturbing side-effect: your images no longer appear!

The Secret to drupal_add_js

drupal_add_js() doesn't add javascript or jquery to your Drupal page? Let's take a look at why, and how to fix it.

Pages

Subscribe to The Accidental Coder RSS
©2005-2017 Ayen Designs. Underlying theme by Kiwi Themes.