Permlink Replies: 2 - Pages: 1 - Last Post: 12-Jun-2008 12:40 Last Post By: MarkE Threads: [ Previous | Next ]
MarkE

Posts: 110
Registered: 24-Apr-2006
A Favourites Album, and Using Comments to Point to other Albums
Posted: 09-May-2007 12:54
  Click to reply to this thread Reply
A large JAlbum with hundreds or thousands of image can overwhelm a visitor. Often, only parts of it are of interest to a specific set of viewers, ie Family or Friends sub-albums. One's artistic images may well be missed by the casual browser!

In a prominent place (say, at the top, so it's seen first), place a "Favourites, "Best Of" or "My Selection" album .... a group of say 40-50 images that give a flavour of the site, something to whet the appetite and entice a visitor to explore further. To facilitate this, a slide comment link can be used to take the user directly to the folder where the image in question resides.

Comments handle embedded HTML links fairly well. If the albums are located in the folder structure http://www.abc.com/Places, http://www.abc.com/People, etc, and the Favourites album is another sub-folder, http://www.abc.com/Favorites, then the slide comments will exist in the Favourites' slides folder, http://www.abc.com/Favorites/slides.

If the comment is of the form

<a href="../../Places/Malta/index.html">A Maltese Boat</a>


where the ../../ points two levels up (http://www.abc.com) then these relative paths will work both locally, on the PC and on the uploaded album.

Clicking the comment will take the viewer to the relevant album, as required.

Mark

Message was edited by: Mark E

Please Be aware of this!!

Unfortunately, there is a catch ... using the "../../"construct will work from the Slide page but not from the Index page, which requires a "../" construct. The issue is that JAlbum does not allow the opportunity to have different comments for both the Index & Slide pages at the same time. A possible solution for an uploaded site is to use the form
<a href="/xyz.html">


ie start from the root folder by using the "/"construct and work down … but that breaks the connection with the local album, which will likely have a different folder levels.
MarkE

Posts: 110
Registered: 24-Apr-2006
Re: A Favourites Album, and Using Comments to Point to other Albums
Posted: 06-Jun-2007 10:51   in response to: MarkE in response to: MarkE
  Click to reply to this thread Reply
MarkE

Posts: 110
Registered: 24-Apr-2006
Re: A Favourites Album, and Using Comments to Point to other Albums
Posted: 08-Jun-2008 00:54   in response to: MarkE in response to: MarkE
  Click to reply to this thread Reply
Attachment Outdoors.cmd (5.3 KB)
Continuing this ….. a real-life example can be found at The Great Outdoors. Until the Jalbum v8 "Title" is implemented by Chameleon (for instance) which may allow different comments for Index & Slides pages, a rather clunky but solid method is required. The latest incarnation is IMHO an improvement.

The method is fundamentally the same; create the album using multi-pass builds, once with Slide comments and once with Index comments, saving the relevant Slides output folder in-between. This folder then replaces the last build's folder. All this is best done via a command file using Console Mode.

The attached Outdoors.cmd may prove useful ….. and I've used Chameleon as the skin.

  • The section that sets the variables is the main part that needs editing to allow for different paths & names (the other being the ignorePattern value). Note the upLinkTitle, this helps maintain a better breadcrumb trail. Watch out though, care is needed with folder names that use "&", for instance ….

  • The "selection" album (ie Favourites, Best Of etc) is processed first. I have 2 comments files, Index_comments.properties & Slides_comments.properties. These are simply copied to the standard comments.properties file, as required. This is safer than the previous renaming approach. The process is fairly self-explanatory for anyone familiar with command files.

  • Note : the general set-up is for no Thumbnail comments. The "selection" album has Thumbnail comments set true in the batch file, which over-rides the setting stored in the .jap project file.

  • The rest of the album is then processed, ignoring the "selection" folder.

  • I then process the top-level Index pages to get the thumbnails as I want them (a personal preference).

I hope this helps anyone else interested in this implementation.

Mark
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums