bioneural.net site preferences

Accessibility

Toggle width/ text size:

style

Default/Alternate

Suits visual impairment, mobile devices

Styling

Change the theme:

layout

NB: may reduce functionality

Link behaviour

Links with an icon are off-site:

links

Right-click any link to optionally open in a new window or tab


Fixing feeds for the Siriux Gallery theme

As previously noted, the currently available RSS module (1.0.6) is incompatible with the Siriux theme for Gallery (2.1.2). I wanted to be able to offer a feed (photocast) for an album in my own gallery, but finding a hack for the code was only half of the problem. For some reason defining a feed in Gallery is very non-intuitive. Here's how it's done, step-by-step.

There are perfectly valid reasons why you might want to offer a web (RSS) feed for a dynamic album on your website. In our case, as we explore and photograph Wellington ourselves, those with an interest in Project Koru can visually explore with us via a photocast/ photostream. If they subscribe to the photo feed, they go where we go.

Gallery-Feeds

Hack the RSS module

To improve compatibility with the Siriux theme, you need to edit Callbacks.inc, located in /gallery2/modules/rss/. As described here, make the following PHP edit:

if (isset($blocks)) {
	foreach ($blocks as $block) {
		if ($block[0] == 'rss.RssBlock') {
		$params = $block[1];
		break;
		}
	}
}

Define a feed

Using the instructions I found here as a basis, with a bit of trial-and-error, the following steps proved successful. This assumes you have the RSS module installed and activated, and that the Item actions block is already set to display on album pages. First you need to add the RSS Feeds block:

  • Login to your Gallery as administrator;
  • Edit the Album for which you want to display a feed;
  • Add the List of RSS Feeds block to show on album (and/or photo) pages and Save.

Now go to Site Admin to set up the allowed feed types:

  • From the main menu, under Export choose RSS;
  • Uncheck Allow Simple RSS Feed to be used and check Allow configurable RSS feeds to be used;
  • Also check Allow RSS feeds of photos inside an album then Save Settings.

Go back to the album for which you want to generate a feed:

  • From the album actions drop-down menu, choose Configure RSS Feeds;
  • Add a new feed, giving it a name and description;
  • For Type of feed, choose Items in this album;
  • Set other feed options to suit and save.

If successful, each page in your album should offer a clickable link to your new feed, together with a link to all feeds (if there are more) available via your Gallery installation:

Gallery-With-Feed

Update 30.12.07: The above edit is not necessary for Siriux version 1.1.3 as included with Gallery 2.2.4.

0 responses to Fixing feeds for the Siriux Gallery theme


  1. No comments

Something to say?

Comments may be moderated (e.g. no commercial promotion), are subject to spam filtering, and should be relevant to this post—otherwise make contact.

Usable tags include <a href=""> <blockquote> <em>. Select any text and click to quote.