Configure the layout and format of content and data presented to site visitors.

Mailing Label

Please let me know if you are interested in maintaining this module.

Previous/Next API

An API for browsing next/previous nodes without overloading your database server.

Description

This module allows you to know the previous or next nodes for any given node. This is very useful for providing navigational links to the user without the expensive queries required to dynamically deduce such information on the fly.

The use case is two fold:

Usability/Navigation

For example, on a site with a gallery of images, you want to show a next/previous link with a thumbnail under each image. Your site's visitor click on the link to show new content or browse it.

Scalability

Although the previous and next nodes can be deduced with some SQL work, the queries to do so are very heavy on the database, and can bring a site to its knees. This module solves this problem by storing the previous/next node in a table so lookups are fast. Once the module is installed, it will build this index backwards via cron until all nodes have been indexed. See the "More Info" section below for a detailed post on the positive scalability impacts of implementing this module.

Configuration

The module can be restricted to certain content types to be included in the previous/next indexing. For example, you want the site's visitors to browse through video and image nodes only, but not blogs and regular pages.

Loader

loader-screenshot.jpg

This module provides a block displaying a page loading progress indicator as percentage (for theming) or as a default Drupal Progress bar.

It's actually a jQuery plug-in that counts the number of img:visible tags on the page and attaches and onLoad event to them, which updates the counter once that image gets loaded. This gives a certain control over what you need your content to do while you load image intensive pages.

Features

  • Set the minimum number of images to have on the page before displaying progress.
  • Use Drupal.progressBar or not, in which case a simple div > span with the percentage will be inserted in the block and the span element will get updated with the progress in percentage.
  • Enable or disable animations (content fading in when the page finished loading)
  • Set the element in which we check for the images (img tags) to load (#wrapper by default)
  • Set the container for your content which will get hidden then faded-in when the page has finished loading if animations are turned on (#container by default)
  • Set the CSS Class applied to both elements specified above while the page is loading ('loading' by default)
  • JS callbacks for the different loading stages (25%, 50%, 75% and 100% [backed by $(window).load when img tags don't fire their onLoad events])

Callbacks

Pages

Subscribe with RSS Subscribe to RSS - Content display