Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.
This module provides a foundation for the development of Backbone.js apps with Drupal. Using this module, you can build complex interactive interfaces with little to no server side code, basic content type configurations, leveraging Drupal's field and entity types and Backbone's power on the client side.
It contains classes for working with Drupal nodes, node listings and views in Backbone Apps. Want to load a view and change the title of the first node? Here's the code:
var viewCollection = new Drupal.Backbone.Collections.NodeView();
viewCollection.viewName = 'backbone_example';
viewCollection.fetch({success: function() {
viewCollection.at(0).set('title', 'New Title');
viewCollection.at(0).save();
});
Natural language date format, "colloquial recency."
Turns CCK time ago and submitted by dates into length-of-time appropriate output:
“a moment ago”
“3 hours ago at 5:18pm”
“tomorrow at 2:30pm"
“last Thursday at 10:56am”
“two weeks ago”
“October 3rd”
“a year ago today”
“Mar. 26th ‘09”
Date outputs are usually pretty clunky. Drupal at least has the "time ago" formatter which is better than what we see around the web. Often websites will present meta data like "September 15, 2012 - 3:48pm" for content like blog posts or forums. Order history is often presented more like "2012/9/15-15:38". This is appropriate for always having access to exact accuracy, but more casual/social dates are much better where needed.
This project will enable you to be automatically signed on on websites that are linked with a broker website, I am writing the whole thing out as an article on my website.