Hi,
I''m trying to create a new gallery layout. I did the following:
o 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: "foobar"
mainPage:
inMenu: true
Now when I run webgen, I keep getting lots of these:
Mon May 22 00:17:23 PDT 2006 ERROR -- Invalid layout specified:
foobar! Using GalleryLayouters::DefaultGalleryLayouter!:
Verbose logging shows me this:
Mon May 22 00:19:04 PDT 2006 DEBUG -- Loading plugin file
<plugin/foobar.rb>...:
Mon May 22 00:19:04 PDT 2006 INFO -- Registering class
GalleryLayouters::Foobar for handling layout
''foobar'':
What am I missing?
Thanks
Diwaker
--
Web/Blog/Gallery: http://floatingsun.net/blog