Drupal Webform Update
We’re now on version 7.x-4.8 of webform for both the Middlebury and MIIS forms sites. Here are the new features in this release:
- Conditionals can now act on more than one component with the same rule.
- Conditionals can now make components required/optional and set component values, in addition to hiding/showing them.
- Tokens may now be used to set the file component upload directory, as well as create a pattern to rename each uploaded file.
- Grid components support a right-side header to create semantic-differential survey questions.
- Result analysis can now be customized with views, including creating exposed filters.
- Email addresses now support long-format names, such as
"First Last" <firstname.lastname@example.org>.
- The confirmation message may now be shown within the webform block, if desired.
- In addition to the first-saved timestamp, webform now tracks the first completed (not draft) and last modified timestamp.
- Submissions may be downloaded by date range, both via the user interface and drush.
- Numeric submission data may now be properly formatted, filtered, and sorted with views.
- The day/month/year may be made optional in date components.
- Time components may have a start and end time, including “over midnight” ranges, such as 10pm-3am.
- Date and time components only show options that fall within the start and end date/times.
- Anonymous users may submit Webforms confidentially, without their IP address being recorded.
- Multi-page drafts are now resumed where the user left off, rather than on page 1.
- The html5 required attribute is used on required components, providing in-browser validation.
Thanks to a suggestion, creation of the dropdown lists, and testing from Bryan Carson, the Library Quick Search feature on the Library site now features a selection of subject and course guides under the “Guides” tab.
Fixes and Tweaks
- The link to the BLWC site on the Middlebury homepage is once again plural in reference to the conferences.
- Elements of the MIIS global design are now rendered via Drupal’s block system, which we’ve been using for the Middlebury site since the upgrade to Drupal 7. This allows us to mix-and-match which elements show up without having to create a new theme and is part of the work we’re doing to port the Course Hubs to Drupal 7.
- A number of programming errors that were preventing the Podcasting and Visual Links WordPress plugins from working on our sites have been corrected.
- The “waveform” feature was not being displayed at the top of the Admissions site, but is now back in place.
- The stylesheeets for the AD Group Manager are now loaded from the central CDN rather than the older “web” server, in preparation of retiring that machine.
- You can now switch themes in the Customizer, making it easier to compare how new themes will look on your site.
- Added Tumblr and Kickstarter to the list of services that can be embedded by just pasting a URL into the editor.
- Extended character support, including native support for Chinese, Japanese, and Korean characters as well as mathematical and musical symbols. Also, emoji 👻
WordPress / Google Calendar support
In the past our sites.middlebury.edu and sites.miis.edu WordPress systems have offered a variety of plugins to support embedding Google Calendars in posts and sidebar widgets. Over time the authors of these plugins have moved on and not updated them to work with the latest versions of WordPress, leaving us with broken calendar support.
We are pleased to announce that we have now retired the old plugins and have replaced them with a streamlined pair of plugins, a Google Calendar Shortcode plugin that allows embedding of calendars in posts and pages and a Google Calendar Widget plugin that provides a sidebar widget which displays an “agenda” view of upcoming events from a calendar. These plugins can be enabled and used on any site in our systems.
See the LIS Wiki for instructions and more information on how use these plugins. For users of the old plugins, we will be going through your sites over the next few days and updating them to use the new plugins.
Tweaks and Fixes
- Google claims that the issue with embedded Google Calendars being blank has been fixed. Let us know if you notice this occurring again.
- In Drupal, on the Middlebury site, RSS feeds and forms on pages with blank sidebars will now use the full width of the content region, rather than being confined to 450px. This mirrors an earlier fix for promotional calendars.
- Also on the Middlebury Drupal site, Facebook buttons and boxes in sidebars won’t have a dotted line border around or beneath them any more.
- Choosing to hide one field in a profile on the Middlebury Drupal site, such as fax number, will no longer also cause the photo to be hidden.
New WordPress themes available
The following themes are now available in sites.middlebury.edu and sites.miis.edu.
- WordPress plugin updates:
- WPtouch Mobile
- Schedule Posts Calendar
- Resize Image After Upload
- Post Types Order
- NextGen Gallery
- MailPoet Newsletters
- Email Users
- CM Tooltip Glossary
- Blog ID In Site Admin Menu
- We’ve been noticing periodic stability issues with the web-server that hosts the GO application. We anticipate that these issues will be resolved by an upcoming system update.
Tweaks and Fixes
Fixed a broken view that was preventing
Multi-File Uploads in Drupal
Thanks to some assistance from our colleagues at Amherst, we’re almost ready to allow multiple files to be uploaded into a File Upload content type in Drupal again. Please try out this feature on our development copy of the site and let us know if you run into any issues. It works just like uploading files does now, except that you can select multiple files when you click the Browse button. We hope to have this feature enabled in production this month.
Files on ‘user’ Pages
Back in 2009-2010, while we were still setting up the Middlebury site and getting used to Drupal, it was possible to upload files to your personal “user” page, rather than your site’s hidden File Uploads page. We’re removing the otherwise unused “user” pages, which aren’t used for anything else and take up a lot of space in the database. There were still about 170 files on those pages, so we moved those files to the appropriate department or office site. If you see a sub-page of your site’s File Uploads page with someone’s name on it, that’s where that came from.
Tweaks and Fixes
- The Email share button on thewip.net was not working because we needed to add that domain to the allowed domains list for MIIS’s reCAPTCHA API key. If there are other WordPress domains that desire to use the Email share button aside from middlebury.edu, miis.edu, or thewip.net, please let us know.
- Images in File Upload nodes where the Link URL field was not blank in the Carousel were hidden. We’ve fixed this so that the images are shown.
- We have removed photos from the MIIS header, except on the homepage, and constrained the header width to 960px. This is part of an ongoing effort to do some work refreshing elements of that site’s design.
- We have improved the performance of permissions-saving and deleting in Drupal. If you noticed problems with these in the past, they should now be resolved.
Searching on www.middlebury.edu
We have changed the way the search dialog works on the Middlebury website. Previously, if you searched for a term within a certain sub-set of GO shortcodes (ex. “coursehub”) we would forward you directly to the page for that GO term and show a green frameset bar at the top of your screen saying, “We think this is the right page for your search…”. This behavior caused several problems.
In order to get this to work for results on non-www.middlebury.edu websites, like Banner and the Course Hub, we have to use HTML framesets, which are a way to display two webpages at the same time in a single browser window. The green bar was one page and your search result was the other page. For security reasons, browsers don’t let one page talk to another.
If you kept browsing in your search result there wasn’t any way for us to automatically tell the green bar to go away, you had to manually close it. If you manually closed it after you’d left the main result page, you’d be redirected back to it without warning. Also, some dynamic features of sites, like Moodle’s editor, were breaking when displayed inside a frameset. This feature was a good idea when introduced in our website redesign five years ago, but was starting to show some strain.
Now, when you start typing in the search box you will see a list of possible GO shortcuts. Select one of those from the drop-down menu and you’ll go right to that page with no kludgy green bar. Or, if you prefer, press return or select the “Search for…” option, which will always be displayed first in the list, to go to a Google-powered search results page.
- Google Analytics: details how to set up a custom segment to look at analytics for your department or office site and provides links to resources on using more advanced features of the Google Analytics platform.
- Drupal Redirector: there are no new features of this content type, but it hadn’t been documented previously.
Tweaks and Fixes
- The “Clicking on this image shows it full-size” checkbox in the dialog box you use to embed images in Drupal content is now working again. This will wrap the image in a link that opens a pop-out dialog window that displays the image at its full size, or scaled down so that it fits inside the browser window. See our Drupal File Upload documentation for more information on embedding images in content.
- Animated gif images will now work when uploaded to Drupal, however, you must choose “Full content” when embedding them in content. If you allow Drupal to resize the image the processing that occurs will break the animation.
- The “Meta tags” tab now appears correctly in the Drupal Page Settings form, so you can set meta tags and Open Graph tags at the page level. See our Drupal Meta Tags documentation for more information on using this feature.
- The “Content Sidebar” region on the MIIS site now has 12px of padding on all sides and its content width has been reduced from 212px to 200px. This is to ensure that text doesn’t run up against the right side of the page.
- The “Library Portal” content type has been deleted. This was used for a single piece of content, the “Library Quick Search” feature on the Library site, which is now in a Basic Content node.
We’re starting this feature again to let you know about the changes that we’ve made recently to our web systems. This will appear each Monday in the Library & Information Technology Services blog.
- Drupal Instagram: You can now add lists of images from one or more Instagram users to your pages. This works well as a sidebar widget.
- Drupal Slideshow: Allows you to put a rotating image slideshow on a page.
- The Language Schools and Schools Abroad sites have had their headers redesigned. Additionally, there is now a fullwidth page theme for the Language Schools.
- We now support embedding content from ExpOsure in Drupal using the video shortcode, as you would with YouTube or Vimeo. Here’s an example of it in practice.
We’re working on improving our documentation and have cleaned up the content types section of the Editing in Drupal page. The Drupal File Upload documentation has been revised to incorporate the changes in that system with Drupal 7, and we’ve added a page about Drupal Email Newsletters, which are created differently in Drupal now, though the process for sending them through List Manager is the same.
The new Instagram and Slideshow content types are also documented and there is a page with the pixel dimensions of each region on our site, which is helpful when creating new Instagram and Slideshow content.
Tweaks and Fixes
- Images in the Drupal File Upload content are now wrapped in a link to the full-sized image. Note that the “Clicking on this image shows it full-size” checkbox when embedding an image is still not working.
- The comment form on Drupal News items on the Middlebury site now includes a comment policy and the unnecessary Subject field has been removed to improve the display of comments.
- Drupal Promotional Calendars on pages with empty sidebars now take up the full width of the content region, rather than being confined to 450px.
- The Middlebury 404 page is no longer showing extraneous navigation elements and has the correct margins on the text that is shown.
- Related videos are no longer shown for any YouTube embeds in Drupal.
- The Google Analytics code on the Middlebury Drupal site has been updated to allow links to “securelb.imodules.com” (the online giving form) to track as though they were hosted on our domain.
- Google Analytics on the MIIS forms site will now track clicks on form page buttons as discrete events, showing “Page 1 of 3”, for example, when a user clicks on the first page button on a multi-page form.
- WordPress video embeds from MiddMedia now support files containing sequential en-dash characters, ‘-‘. WordPress had been translating this into em-dash characters ‘–‘, breaking urls.
You can now create a piece of content on your Drupal site(s) to display a list of images from one or multiple Instagram accounts. You can set the number of images to show and the width at which the images will appear. Full documentation on this feature is available on the Library & ITS Wiki.
If you want to use Instagram on your WordPress sites, you can activate the Simple Instagram plugin, then configure the plugin (start with the “Registering and Activating” header on that page).