3 Easy Wins that Make Life with Drupal Easier
Easy cheesy! Here are three quick wins you can add to your Drupal site to make your life easier today.
- Force PDFs to always open in a new window.
- Crop images as you upload them.
- Use Linkit to easily add links on your site.
PDFs always in a new window
You can use the External Links module to force all PDFs to open in a new window. While debate rages on whether you should force external links to open in a new window, opening PDF links in a new window makes life easier on your visitors. External Links makes it automatic.
Install and turn on the module, then add this simple code in the "Pattern Matching" section of the module's configuration screen:
Now, any time you link to a PDF, the link will always open a new window or tab in the browser.
Crop images as you upload
Use the Imagefield crop module to allow you to crop images as you upload them. There are several cropping modules, I like this one due to the simplicity of setup and use.
Install and enable the module, then access the content type with an image field that needs cropping ability. Change the widget type for the image field from "Image" to "Image with cropping." Edit the field and set the desired width/height attributes and you're done.
This module is just for fields and does not help you with image uploads inside the WYSIWYG. I use this mostly for header images or post images. It just makes it a little easier when entering content to skip Photoshop on occasion.
Make hyperlinks simple with Linkit
Use the Linkit module to search for content on your site and add the hyperlink. This is one of my favorite modules in Drupal. Without this module, I always had to browse to my destination page, copy the URL, use only the relative path and paste into the hyperlink dialog.
With this module, I can click the Linkit button in the CKEditor toolbar, type the node title of the desired destination and it searches my site for the content. Click the content and it inserts the link to that node.
In this example, I typed "customer" and it searched my site and displayed a list of all node titles with that word. Perfect!
What would you add?
I had to pull my list down to three items. I had a MUCH longer list of tips. I'd love to hear yours as well! What else should be added to this list?
[Image credit: xiaming]
Monthly Marketing Insights.
Get thought-provoking and actionable insights to improve how your firm makes a connection with your customers.