I'm having some trouble to have the album plug-in working.
With ikiwiki version 3.20170111 installed via pkgsrc on macOS 10.12.4, I installed the album plugin for Ikiwiki following the instruction in the section 'Manual installation' at https://ikiwiki.info/plugins/contrib/album/. The problem is that after 'ikiwiki --rebuild --verbose --setup mysite.setup --gettime', the page with
# Images
[[!album
sort="age"
size="full"
thumbnailsize="96x96"
viewertemplate="albumviewer"
prevtemplate="albumprev"
nexttemplate="albumnext"]]
builds correctly into an page with a list of images, but if I click any individual thumbnail to get to a page that's supposed to contain just that one image, I see the following exposed code
[[!albumimage Error: template albumviewer not found]]
I verified that I do have albumviewer.tmpl in sourcedir/templates/.
Any idea why and how to fix it?
The album plugin is not exactly polished - it still hasn't been merged into mainstream ikiwiki despite being written by someone who is now an ikiwiki co-maintainer (me), because I'm not actively using or developing it at the moment.
I think you might need to use
viewertemplate=albumviewer.tmpl
instead of justviewertemplate=albumviewer
- or miss out that parameter altogether, becausealbumviewer.tmpl
is the default anyway. If you usealbumviewer
without the extension, I think ikiwiki will be looking for an ordinary page (albumviewer.mdwn
or something) that contains a templatebody directive, rather than a.tmpl
file.If I'm right about that, the
prevtemplate
andnexttemplate
parameters are also going to have the same issue - but you probably haven't noticed that because the trail links let you navigate anyway.