Displaying 1 result from an estimated 1 matches for "defaultgallerylayouter".
2006 May 22
2
Creating a new gallery layout
...create plugin/foobar.rb in my base directory.
o copy plugins/gallerylayouters/default.rb in foobar.rb and make
appropriate modifications. For
simplicity, lets say my class looks thus:
require ''webgen/plugins/gallerylayouters/default''
module GalleryLayouters
class Foobar < DefaultGalleryLayouter
define_handler ''layout''
register_layout ''foobar''
end
end
(yes, I tried filling in the main, gallery and image methods. Same results)
o I create a file my.gallery under src/:
title: Gallery
files: gallery/**/*.jpg
imagesPerPage: 16
layout: &q...