User Tools

Site Tools


ce4_auto_index_advanced

Advanced Options in the Auto Index

The auto index has a handful of advanced options buried in code. To get at these features, you will need a plain text-editor.

To get at these options, open the file /lib/autoindex/autoindex-view.php using your text-editor. Near the head of the script, you fill see these lines:

$reverseit = false;	// change to true if you'd like the album displayed in reverse order
$shuffleit = false;	// change to true if you'd like the album displayed in shuffled order
$popit = false;		// open targets in a new browser tab/window

You may set this options to 'true' to achieve various effects, as described below.

$reverseit = true;

Will cause the gallery index to list albums in reverse order.

This can be useful in many circumstances, the most common of which is when you want to display dated folders, with the most recent folder appearing at the top. Here are some folders of images from my recent trip to China:

20121227-HongKong
20121231-China-Shanghai
20130101-China-Xitang
20130102-China-Suzhou

By reversing the display order of my auto index, the most recent folder would be listed first:

20130102-China-Suzhou
20130101-China-Xitang
20121231-China-Shanghai
20121227-HongKong

$shuffleit = true;

Will cause the gallery index to list albums in random order. The display order will be randomized on every page load.

$popit = true;

Will cause the gallery index to open albums in a new browser tab or window, depending on the visitor's browser preferences.

ce4_auto_index_advanced.txt · Last modified: 2014/07/08 08:02 by matthew

The Turning Gate
Creating webbly, wobbly, Lightroomy things since 2007.