You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jspwiki.apache.org by Fritz Schneider <Fr...@Peacham.com> on 2010/08/03 07:00:46 UTC
Photo Collection plugin
I'm trying to set up a wiki for my Church at http://www.peacham.com/ccla in
order to organize the collections of pictures that people have. I am running
JSP Wiki 2.8.3 under Tomcat under Windows/XP. Since we are trying to
organize photographs and scanned documents, I found the Photo Collection
Plugin to be extremely valuable.
I had some problems with installation, but, being a newbie, I wanted to run
my solutions past the list before I update the wiki pages.
1. The wiki documentation for thumbs refers to
"jspwiki.default.thumbspath" and "jspwiki.default.thumbspfx", but the first
qualifier should be "photoCollection".
2. When editing Header.jsp you need to also define the taglib. I
ended up extracting photocollection.tld from photocollection.jar and
putting it in \Tomcat\webapps\ccla\WEB-INF so I could reference it:
<%@ taglib uri="/WEB-INF/photocollection.tld" prefix="photo" %>
I notice that my thumbs directory shows up as a link on my photo collection
page. Is there some way to suppress this?
Thanks,
Fritz
Re: Photo Collection plugin
Posted by Brian Burch <Br...@PingToo.com>.
On 03/08/10 06:00, Fritz Schneider wrote:
> I'm trying to set up a wiki for my Church at http://www.peacham.com/ccla in
> order to organize the collections of pictures that people have. I am running
> JSP Wiki 2.8.3 under Tomcat under Windows/XP. Since we are trying to
> organize photographs and scanned documents, I found the Photo Collection
> Plugin to be extremely valuable.
>
>
>
> I had some problems with installation, but, being a newbie, I wanted to run
> my solutions past the list before I update the wiki pages.
>
> 1. The wiki documentation for thumbs refers to
> "jspwiki.default.thumbspath" and "jspwiki.default.thumbspfx", but the first
> qualifier should be "photoCollection".
>
> 2. When editing Header.jsp you need to also define the taglib. I
> ended up extracting photocollection.tld from photocollection.jar and
> putting it in \Tomcat\webapps\ccla\WEB-INF so I could reference it:
> <%@ taglib uri="/WEB-INF/photocollection.tld" prefix="photo" %>
>
>
>
> I notice that my thumbs directory shows up as a link on my photo collection
> page. Is there some way to suppress this?
Hi, Fritz.
I have just returned from a trip and am very busy catching up with
everything. If you haven't resolved your issues by this weekend, I will
try to answer you then. Sorry!
Brian
Re: Friendly page titless
Posted by Brian Burch <Br...@PingToo.com>.
On 26/08/10 21:58, Chris Haynes wrote:
> Hey! Just a minute!
>
> Is this the new Wiki structure which permits pages to be organized into directory groups (that I was asking for last year)?
Sorry to disappoint you, Chris. The behaviour of the
PhotoCollectionPlugin is restricted to the directory structure that
houses the pictures. The associated wiki pages are still held in the
"normal" single directory. It is the external photo collection that can
be hierarchical and the plugin will map between these two organisational
regimes.
> Is it in a standard release yet?
>
> Is it documented anywhere other than in the eMail thread?
>
> Did I miss some big announcement or is _this_ it?
>
> Regards, from a happily-expectant
However, I am puzzled that you have not looked at the standard "beautify
pages" feature that I encountered during my research into my own plugin.
My algorithms are derived from the base code, although the behaviour is
customised to deal with external file and directory names when used to
automatically derive unique wiki page names.
I tried to quickly find out something about the beautify feature, but
was surprised at how little had been written:
http://www.jspwiki.org/wiki/SystemInfo -> Do we beautify titles? true.
http://www.jspwiki.org/wiki/JSPWikiSupport#section-JSPWikiSupport-PageNamesWithBlanks
There are two issues related to this feature, I think...
1) some people want to create wiki page names with embedded blanks, so
the filenames and associated url's have to embed the String %20 (or is
it +) instead to make them legal.
2) Some people want their existing wiki CamelCase page titles
//rendered// as their page names, but with white space between each word.
My code is based on the class com.ecyrd.jspwiki.TextUtil, so you might
like to review the original code. The only use that seems important is
within WikiEngine.beautifyTitle(), which claims to add whitespace to
wiki page titles.
I was under the impression that there was a global beautifyPages
property in jspwiki.properties, but I haven't found it in the default
file. I wonder whether the feature needs to be triggered by the template
parameters... perhaps someone who knows more can help?
Regards,
Brian
Friendly page titless
Posted by Chris Haynes <ch...@harvington.org.uk>.
Hey! Just a minute!
Is this the new Wiki structure which permits pages to be organized into directory groups (that I was asking for last year)?
Is it in a standard release yet?
Is it documented anywhere other than in the eMail thread?
Did I miss some big announcement or is _this_ it?
Regards, from a happily-expectant
Chris
On Wednesday, August 25, 2010 at 6:31:52 PM, Brian Burch wrote:
> 2. I found several quirks in the way friendly page titles were generated
> and have improved the algorithm.
> 3. While working on point 2, I found several situations where the
> algorithm that generated the associated wiki page name lost information
> about the file path that would have helped the friendly page title
> logic. Reluctantly, I decided to make a non-backward-compatible change.
> In many cases existing wiki pages will be named exactly as before, but
> it is possible for existing pages to "apparently" disappear!
> The types of paths that will map differently are:
> File path --------original wikiname -------- new wikiname
> abcd/2xyz Abcd2xyz Abcd_2xyz
> abc3/2xyz Abc32xyz Abc3_2xyz
> abcD/2xyz AbcD2xyz AbcD_2xyz
> abcD/Wxyz AbcDWxyz AbcD_Wxyz
Re: Photo Collection plugin - new version
Posted by Brian Burch <Br...@PingToo.com>.
On 26/08/10 07:26, Fritz Schneider wrote:
> After renaming my pages, I have it up and running.
Yes, your wiki titles now look much more readable. However, I did notice
this page:
http://www.peacham.com/ccla/Wiki.jsp?page=AlbInstallation_3-The%20Reception
with the title "Album Installation 3- The Reception"
I was surprised by the space inserted after the hyphen until I realised
that you have capitalised the letter T. My own photo collection naming
convention would have used a lower-case t, but I don't think a title of
"Album Installation 3-the Reception" is better than the one you have! I
guess choosing folder names is a bit of an art form!
I don't think we will ever come up with a "perfect" algorithm, so I am
inclined to leave things alone at the moment unless you have an
appropriate and elegant insight...
> I will need to do some more work to implement the template feature, but the page headings look fine.
What do you mean by "the template feature"? My choice of css elements to
lay out the photos is VERY simplistic because my priority was to get
something working that didn't look stupid. I know it could be a lot more
elegant but lack the skills to do it quickly. If you can help I would be
very grateful.
The html elements are built at run-time from hard-coded fragments in the
plugin, e.g.
<div class="photobox">
<div class="photo">
<div class="photoimage">
<a href="alb/installation/3-The Reception/P2104091.jpg"/>
<img class="smallphoto" src="alb/installation/3-The
Reception/thumbs/P2104091_t.jpg" alt="Click to enlarge this image"/>
</a>
</div>
<br/>
<div class="photocaption">
<p>
<a class="createpage" href="/ccla/Edit.jsp?page=AlbInstallation_3-The
ReceptionP2104091.jpg&_editedtext=[{INSERT PhotoCollectionPlugin
photodir='installation/3-The Reception/P2104091.jpg'}]" title="Create
"Album Installation 3-The Reception P2104091.jpg"">Album
Installation 3-The Reception P2104091.jpg
</a>
</div>
</div>
<div class="photo">
etc...
My extra style definitions are held in the
templates/photoCollection/jspwiki.css file, so it is easy for you to
experiment with enhancements.
I would like to use fly-over notes similar to when you hover your mouse
over the more tab or the search box. I would also like to improve the
ugly box borders, but my early experiments failed. I think it is
essential for the layout to flow properly when the browser window is
resized and I couldn't achieve this easily.
I hope you can help!
Thanks for your testing and feedback.
Brian
RE: Photo Collection plugin - new version
Posted by Fritz Schneider <Fr...@Peacham.com>.
Brian,
After renaming my pages, I have it up and running. I will need to do some more work to implement the template feature, but the page headings look fine.
Fritz
-----Original Message-----
From: Brian Burch [mailto:Brian@PingToo.com]
Sent: Wednesday, August 25, 2010 10:32 AM
To: jspwiki-user@incubator.apache.org
Subject: Re: Photo Collection plugin - new version
On 15/08/10 15:58, Fritz Schneider wrote:
> I have it installed, and it works fine.
> Thanks again,
> Fritz
I have just uploaded version 3 of the PhotoCollection plugin jar. The
significant changes are in three areas:
Re: Photo Collection plugin - new version
Posted by Brian Burch <Br...@PingToo.com>.
On 15/08/10 15:58, Fritz Schneider wrote:
> I have it installed, and it works fine.
> Thanks again,
> Fritz
I have just uploaded version 3 of the PhotoCollection plugin jar. The
significant changes are in three areas:
1. Multiple image file types are now supported via either the plugin
invocation, or across the entire photo collection. I have updated the
description on the wiki to describe this feature. (I have scanned some
prints and documents as png files and didn't want to convert them to jpegs).
2. I found several quirks in the way friendly page titles were generated
and have improved the algorithm.
3. While working on point 2, I found several situations where the
algorithm that generated the associated wiki page name lost information
about the file path that would have helped the friendly page title
logic. Reluctantly, I decided to make a non-backward-compatible change.
In many cases existing wiki pages will be named exactly as before, but
it is possible for existing pages to "apparently" disappear!
The types of paths that will map differently are:
File path --------original wikiname -------- new wikiname
abcd/2xyz Abcd2xyz Abcd_2xyz
abc3/2xyz Abc32xyz Abc3_2xyz
abcD/2xyz AbcD2xyz AbcD_2xyz
abcD/Wxyz AbcDWxyz AbcD_Wxyz
If (when) you implement the new jar, please check your wiki to see
whether any pages that previously existed are no longer found. You only
need to manually rename the "old" page and it will magically reappear.
Here is the procedure:
1. do a wiki search for the page under its original name using an
appropriate wildcard, e.g. 2010*.
2. follow the search hit to display the original page.
3. click on the "info" tab of the page.
4. update the page name with underscores, e.g. preceding a file path
element that starts with a digit, or following one with a trailing
uppercase character).
5. click the rename button.
6. Refresh the page representing the higher level collection and the
link should change to successfully locate the renamed page.
Sorry for any inconvenience. I think you will find your page titles look
much nicer and it would be better to convert before you create too many
pages! Don't forget to make a backup before you start work!
Regards,
Brian
RE: Photo Collection plugin - friendly page titles
Posted by Fritz Schneider <Fr...@Peacham.com>.
I have it installed, and it works fine.
Thanks again,
Fritz
-----Original Message-----
From: Brian Burch [mailto:Brian@PingToo.com]
Sent: Friday, August 13, 2010 3:28 AM
To: jspwiki-user@incubator.apache.org
Subject: Photo Collection plugin - friendly page titles
Just a warning about the version 2 plugin. It also includes a new
version of the PhotoPageNameTag which uses the jspwiki.properties
photoCollection.collection.base and photoCollection.collection.alias.
I had to rework a lot of unit tests and wrote several new ones. I
discovered some "strangeness" in the way friendly page titles were
generated and had to fix what I could to make it behave more
consistently. As far as I can tell, I have NOT changed the way wiki page
names are created, but the way they display pleases me more,
particularly when adjacent path components end and start with digits.
I'm still not completely satisfied with this new behaviour, but my
planned next version will do better. Unfortunately, I suspect I will
have to change the synthesised path names and so it will not be 100%
backward compatible with existing collection wiki pages. I will include
instructions on dealing with any necessary page renaming once I've
worked out the details.
Brian
Photo Collection plugin - friendly page titles
Posted by Brian Burch <Br...@PingToo.com>.
Just a warning about the version 2 plugin. It also includes a new
version of the PhotoPageNameTag which uses the jspwiki.properties
photoCollection.collection.base and photoCollection.collection.alias.
I had to rework a lot of unit tests and wrote several new ones. I
discovered some "strangeness" in the way friendly page titles were
generated and had to fix what I could to make it behave more
consistently. As far as I can tell, I have NOT changed the way wiki page
names are created, but the way they display pleases me more,
particularly when adjacent path components end and start with digits.
I'm still not completely satisfied with this new behaviour, but my
planned next version will do better. Unfortunately, I suspect I will
have to change the synthesised path names and so it will not be 100%
backward compatible with existing collection wiki pages. I will include
instructions on dealing with any necessary page renaming once I've
worked out the details.
Brian
Re: Photo Collection plugin
Posted by Brian Burch <Br...@PingToo.com>.
On 09/08/10 19:02, Fritz Schneider wrote:
> Irfanview adds "_t" to the name portion: "P3236699_t.jpg". I am not clear on
> what you mean by "processing." I was seeing this as a way to tell the plugin
> how to transform a file name into a thumbnail name, so the thumbnail for
> P3236699.jpg would be P3236699_t.jpg in the thumbs directory.
>
>> How urgent (for you) is this "always ignore thumbnails directories"
>> feature? I can't tell whether you've changed them all for now, or will
>> just turn a blind eye to the pointless hyperlinks until the next version
>> of the plugin.
>
> I can create future thumbnail directories with the dot on the front, so
> there is no urgency. Actually, it's a bit more time-consuming to remove the
> "-t" so the thumbssfx enhancement would be welcome.
I have just uploaded a new version of the plugin jar (and
jspwiki.properties comments) which provides both these requested
features. You can now code either or both prefix and suffix for your
thumbnails (the built-in defaults are both empty strings). Also, your
"non-hidden" thumbnail subdirectories will now be automatically
concealed, so you will no longer see hyperlinks to create new wiki pages
for them.
>> By the way, I don't intend producing a way to hide "non hidden"
>> directories or files. I don't intend writing platform-specific code to
>> detect the windows hidden attribute, either.
> That sounds fine to me. I see your recognition of the leading dot as
> platform-specific code. :)
Well... what I mean is that I can detect a linux "hidden file" very
simply in java using filename.startsWith('.'). However, if I want to
code myFile.isHidden() to detect hidden files on any platform I would
have to write my own native method for windows. I'm not interested in that!
Let me know how you get on with the new version.
Brian
RE: Photo Collection plugin
Posted by Fritz Schneider <Fr...@Peacham.com>.
> Could you give me an example of a full thumbnail filename and how you
> would like it to appear after processing by this possible thumssfx
feature?
Irfanview adds "_t" to the name portion: "P3236699_t.jpg". I am not clear on
what you mean by "processing." I was seeing this as a way to tell the plugin
how to transform a file name into a thumbnail name, so the thumbnail for
P3236699.jpg would be P3236699_t.jpg in the thumbs directory.
[clip ...]
> How urgent (for you) is this "always ignore thumbnails directories"
> feature? I can't tell whether you've changed them all for now, or will
> just turn a blind eye to the pointless hyperlinks until the next version
> of the plugin.
I can create future thumbnail directories with the dot on the front, so
there is no urgency. Actually, it's a bit more time-consuming to remove the
"-t" so the thumbssfx enhancement would be welcome.
> By the way, I don't intend producing a way to hide "non hidden"
> directories or files. I don't intend writing platform-specific code to
> detect the windows hidden attribute, either.
That sounds fine to me. I see your recognition of the leading dot as
platform-specific code. :)
Regards,
Fritz
Re: Photo Collection plugin
Posted by Brian Burch <Br...@PingToo.com>.
On 09/08/10 16:38, Fritz Schneider wrote:
>> I have looked carefully at my code and have two observations:
>>
>> a) the built-in default for thumbspfx is an empty String. It is just
>> possible that your jspwiki.properties line is assigning something else
>> (space or carriage return). Could you please simply delete or comment
>> out this line and let my own global default take effect?
>
> Done, but no visible change it was finding my un-prefixed thumbs fine
> before.
OK, I was just being paranoid.
>> b) my own thumbs are built by a package called ginp, which assigns a
>> thumbnails sub-directory name of ".ginp". Under linux, any files or
>> directories whose names start with a dot are treated as hidden (like the
>> windows hidden attribute). The PhotoCollectionPlugin behaves like a
>> linux filesystem viewer and by default will hide anything with a leading
>> dot. I manually added showhidden='true' to the [{INSERT
>> PhotoCollectionPlugin}] command in one of my directory wiki pages... and
>> I a hyperlink to create a page for my thumbs directory appeared!!!
>
> I use the Irfanview utility, and it adds a suffix to the thumbnails. If it's
> not too much trouble, a thumbssfx property would be very useful.
Could you give me an example of a full thumbnail filename and how you
would like it to appear after processing by this possible thumssfx feature?
>> Unfortunately, your thubnail directory does not start with a leading dot
>> and I don't have the converse logic to let you "hide" it.
>
>> I will add this feature in a new release (see separate post coming
>> soon), but in the meantime, could try renaming one (or all) of your
>> thumbnail subdirs to ".thumbs"? I predict the unwanted hyperlinks will
>> miraculously disappear!
>
> As predicted, renaming the directory made the unwanted links disappear. The
> Windows file Explorer was not very cooperative. It thought I was creating a
> file with a blank name and an extension of ".thumbs" even though it was a
> directory. I had to use another program to do the renaming.
Great to know this has resolved your problem. Your test confirms that I
haven't overlooked anything else important.
> While a way to ignore certain directories explicitly might be useful, I
> would think that the default would be to always hide the thumbs directory,
> no matter what its name.
That was exactly what I had in mind. I can't imagine a situation where
one would want to specifically create a wiki page for an explicitly
configured thumbnails directory. The only reason this feature doesn't
exist already is because the thumbs directories were already "hidden" by
their initial dots on my system.
How urgent (for you) is this "always ignore thumbnails directories"
feature? I can't tell whether you've changed them all for now, or will
just turn a blind eye to the pointless hyperlinks until the next version
of the plugin.
By the way, I don't intend producing a way to hide "non hidden"
directories or files. I don't intend writing platform-specific code to
detect the windows hidden attribute, either.
Regards,
Brian
RE: Photo Collection plugin
Posted by Fritz Schneider <Fr...@Peacham.com>.
> I have looked carefully at my code and have two observations:
>
> a) the built-in default for thumbspfx is an empty String. It is just
> possible that your jspwiki.properties line is assigning something else
> (space or carriage return). Could you please simply delete or comment
> out this line and let my own global default take effect?
Done, but no visible change it was finding my un-prefixed thumbs fine
before.
> b) my own thumbs are built by a package called ginp, which assigns a
> thumbnails sub-directory name of ".ginp". Under linux, any files or
> directories whose names start with a dot are treated as hidden (like the
> windows hidden attribute). The PhotoCollectionPlugin behaves like a
> linux filesystem viewer and by default will hide anything with a leading
> dot. I manually added showhidden='true' to the [{INSERT
> PhotoCollectionPlugin}] command in one of my directory wiki pages... and
> I a hyperlink to create a page for my thumbs directory appeared!!!
I use the Irfanview utility, and it adds a suffix to the thumbnails. If it's
not too much trouble, a thumbssfx property would be very useful.
> Unfortunately, your thubnail directory does not start with a leading dot
> and I don't have the converse logic to let you "hide" it.
> I will add this feature in a new release (see separate post coming
> soon), but in the meantime, could try renaming one (or all) of your
> thumbnail subdirs to ".thumbs"? I predict the unwanted hyperlinks will
> miraculously disappear!
As predicted, renaming the directory made the unwanted links disappear. The
Windows file Explorer was not very cooperative. It thought I was creating a
file with a blank name and an extension of ".thumbs" even though it was a
directory. I had to use another program to do the renaming.
While a way to ignore certain directories explicitly might be useful, I
would think that the default would be to always hide the thumbs directory,
no matter what its name.
Regards,
Fritz
Re: Photo Collection plugin
Posted by Brian Burch <Br...@PingToo.com>.
On 08/08/10 02:40, Fritz Schneider wrote:
<snip/>
> Looks the same without the leading slash. Register, and I'll authorize you
> to edit, if you wish.
Shouldn't be necessary, thanks.
>> If not, we need to review all your properties... could you tell me
>> exactly what you have coded, and also the absolute paths to both the
>> image and the corresponding thumbnail.
>
> photoCollection.collection.base = files/pictures/
> photoCollection.collection.alias = Photos
>
> photoCollection.default.sortmethod = date
>
> photoCollection.default.thumbspfx =
> photoCollection.default.thumbspath = thumbs
I have looked carefully at my code and have two observations:
a) the built-in default for thumbspfx is an empty String. It is just
possible that your jspwiki.properties line is assigning something else
(space or carriage return). Could you please simply delete or comment
out this line and let my own global default take effect?
b) my own thumbs are built by a package called ginp, which assigns a
thumbnails sub-directory name of ".ginp". Under linux, any files or
directories whose names start with a dot are treated as hidden (like the
windows hidden attribute). The PhotoCollectionPlugin behaves like a
linux filesystem viewer and by default will hide anything with a leading
dot. I manually added showhidden='true' to the [{INSERT
PhotoCollectionPlugin}] command in one of my directory wiki pages... and
I a hyperlink to create a page for my thumbs directory appeared!!!
Unfortunately, your thubnail directory does not start with a leading dot
and I don't have the converse logic to let you "hide" it.
I will add this feature in a new release (see separate post coming
soon), but in the meantime, could try renaming one (or all) of your
thumbnail subdirs to ".thumbs"? I predict the unwanted hyperlinks will
miraculously disappear!
Regards,
Brian
RE: Photo Collection plugin
Posted by Fritz Schneider <Fr...@Peacham.com>.
[clip ..]
I don't understand taglib referencing very well myself, and what I have is
working so I'm not going to touch it.
[clip ...]
> I looked at my own photo wiki and noticed that it is generating the
> equivalent of:
> [{INSERT PhotoCollectionPlugin photodir='installation/1-Preparation'}]
> ... so why don't you try manually editing that individual existing page
> to remove your leading forward_slash and see what happens? If it works,
> you need to review the values you coded in your properties.
Looks the same without the leading slash. Register, and I'll authorize you
to edit, if you wish.
> If not, we need to review all your properties... could you tell me
> exactly what you have coded, and also the absolute paths to both the
> image and the corresponding thumbnail.
photoCollection.collection.base = files/pictures/
photoCollection.collection.alias = Photos
photoCollection.default.sortmethod = date
photoCollection.default.thumbspfx =
photoCollection.default.thumbspath = thumbs
> Your symptoms imply that the plugin is finding a subdirectory containing
> images whose name does not EXACTLY correspond to the name of the
> indicated thumbnail directory. Perhaps you have multiple thumbnail
> subdirectories? If not, perhaps there is confusion because tomcat, java,
> jspwiki and my plugin all expect case-sensitive urls and paths, but
> windows paths are case-insensitive?
I have attached a screen capture of the relevant directory tree. In case the
mail manager strips it out, all directory names are lowercase only except
"Tomcat" and the mixed case collection names (1-..., 2-..., etc.)
Regards,
Fritz
Re: Photo Collection plugin
Posted by Brian Burch <Br...@PingToo.com>.
On 03/08/10 06:00, Fritz Schneider wrote:
> I'm trying to set up a wiki for my Church at http://www.peacham.com/ccla in
> order to organize the collections of pictures that people have. I am running
> JSP Wiki 2.8.3 under Tomcat under Windows/XP. Since we are trying to
> organize photographs and scanned documents, I found the Photo Collection
> Plugin to be extremely valuable.
>
> I had some problems with installation, but, being a newbie, I wanted to run
> my solutions past the list before I update the wiki pages.
>
> 1. The wiki documentation for thumbs refers to
> "jspwiki.default.thumbspath" and "jspwiki.default.thumbspfx", but the first
> qualifier should be "photoCollection".
Oops! It is just as you said, so the plugin documentation was wrong. I
have now updated it on the jspwiki site. Thanks!
> 2. When editing Header.jsp you need to also define the taglib. I
> ended up extracting photocollection.tld from photocollection.jar and
> putting it in \Tomcat\webapps\ccla\WEB-INF so I could reference it:
> <%@ taglib uri="/WEB-INF/photocollection.tld" prefix="photo" %>
No, I think this is not necessary. The handling of taglibs is quite
idiosyncratic and I spent a long time reading specifications and doing
experiments before I got it working properly. Then I forgot everything
and so had to research it all again to answer you with any degree of
confidence!
The photocollection.jar contains a META-INF directory. The
META-INF/MANIFEST.MF file contains several extra attributes that define
my taglib class. In particular...
Name: com/pingtoo/jspwiki/tags/PhotoPageNameTag.class
.. causes my class (using the correct java package within the jar) to be
searched for tags.
The only detail I'm hazy about is this - my instructions to make your
own Header.jsp say to update with this line:
<div class="pagename"><photo:PhotoPageName /></div>
... so how does the servlet container know it should call
PhotoPageNameTag.doWikiStartTag() ???
I currently have a debugger break point stopped at my code, so I know
the method really is invoked (after all, the page name is definitely
prettified on my own wiki). I suspect there is a simple naming
convention at work, i.e. code photo:PhotoPageName to invoke
PhotoPageNameTag.
Of course, this doesn't matter to you. I still think you did not need to
update the taglib uri in Header.jsp to make the tag work - the class
should be loaded from within the jar. In other words, your unpacked
/WEB-INF/photocollection.tld is not being used.
However, while looking at the code I saw some embarrassing TODO
comments. In particular, it hard-codes the photo collection base as
"FilesPictures" and replaces it with the alias "Photos" in the visible
page title. I need to sort that out soon, because it probably isn't
working for you!
> I notice that my thumbs directory shows up as a link on my photo collection
> page. Is there some way to suppress this?
Yes, I can see what you mean on your page:
http://www.peacham.com/ccla/Wiki.jsp?page=FilesPicturesInstallation1-Preparation
I've checked the following:
a) the first picture on the page really is a thumbnail, so your thumbs
path navigation properties appear to be correct.
b) when I click on the thumbnail image, I get a higher resolution
version of the image, so the image path navigation seems OK too.
c) the current page source is trivial - just the plugin invocation
automatically generated by my code, i.e.
[{INSERT PhotoCollectionPlugin photodir='/installation/1-Preparation'}]
I looked at my own photo wiki and noticed that it is generating the
equivalent of:
[{INSERT PhotoCollectionPlugin photodir='installation/1-Preparation'}]
... so why don't you try manually editing that individual existing page
to remove your leading forward_slash and see what happens? If it works,
you need to review the values you coded in your properties.
If not, we need to review all your properties... could you tell me
exactly what you have coded, and also the absolute paths to both the
image and the corresponding thumbnail.
Your symptoms imply that the plugin is finding a subdirectory containing
images whose name does not EXACTLY correspond to the name of the
indicated thumbnail directory. Perhaps you have multiple thumbnail
subdirectories? If not, perhaps there is confusion because tomcat, java,
jspwiki and my plugin all expect case-sensitive urls and paths, but
windows paths are case-insensitive?
Regards,
Brian