Since updating to Jalbum 8.1 (now 8.1.6), I have noticed that global headers and footers are no longer appearing on my slides, although they are still appearing correctly on my index pages. I am using a slightly modified version of ExhibitPlus 1.5, but the problem also occurs with the unmodified version. Both the index.htt and slide.htt files have identical code to include $rootPath/styles.inc, $rootPath/header.inc and $rootPath/footer.inc.
The ja:include is not working when generating slides using JAlbum 8.1.6, but was fine using version 8.0.9. It looks like the value of rootPath has been lost - could this be a side effect of the changes to include widgets?
could this be a side effect of the changes to include widgets?
That should be easy to check.
At Settings>Advanced>Metadata uncheck the box for "Include Jalbum widget support" and try again.
If there is still a problem, can you give us a link to the affected album?
If that is not possible, you could attach to a reply one of the affected slide HTML pages.
Thanks for the suggestion. I have regenerated the album without widget support, but get the same result. I have attached the html of the same slide generated by Jalbum versions 8.0.9 and 8.1.6, a link to the working version on my site URLhttp://www.payanke.com/gallery/sunsets/slides/102-2078.html[/URL] and an image of the newly generated one.
As an experiment, I tried removing '$rootPath/' from the ja:include statements in the slide template, and found that by removing the path I could pick up the header and footer files from the skin folder. This suggests to me that the value of rootPath must be missing or incorrect when generating the slides, because the same code works for the index pages.
I hope this makes sense - I am at the limit of my understanding of how Jalbum works!
As an experiment, I tried removing '$rootPath/' from the ja:include statements in the slide template, and found that by removing the path I could pick up the header and footer files from the skin folder.
I think the original code expects the header.inc and footer.inc files to be in the "Image directory", not the skins directory. This is so that you can have specific headers and footers for different albums. It is possible to rewrite the code to allow alternative locations for the header/footer, e.g. from Image directory if found, but if not found there, then from the skin directory.
There was a long discussion on this some years back.
I agree the original code expects the header and footer files to be in the image directory. That is what used to work!
Thanks for the link to the previous thread. I'm sure it will help me work around the problem if necessary.
I have inserted some extra code in both slide and index templates to determine the value of rootPath. I then regenerated my gallery using both Jalbum 8.0.9 and 8.1.6. I have found that rootPath gives the value of ".." when generating both indexes and slides using 8.0.9 and indexes using 8.1.6. But it gives the value of "../.." when generating slides using 8.1.6. This means that when generating slides using Jalbum 8.1.6, rootPath is not pointing to 'Path to get back to the top of a multi directory level album', as defined in the Jalbum documentation, but to the level above in the directory structure. This would appear to be a bug in Jalbum rather than ExhibitPlus, but I would appreciate a second opinion. I have checked the other skins installed by default and none of them use rootPath in their slide templates, so this may explain why this issue has not been raised elsewhere before.
Thank you for this description. Hopefully I can fix my version of ExhibitPlus as I noticed the styles.inc was no longer being included in slide pages, but was included in all index pages.
This discussion was very helpful. My current published album will hopefully look better with the include problem corrected!
I will try using a global variable rather than depend on the rootPath variable
the problem was that $rootPath was equal to "../.." just as stated earlier, making the wrong directory. Since the header, footer and styles were placed in the image directory, replacing the above with the following line
Okay I know this is an old thread on a forum for a skin that will no longer be updated. But I can't find a skin that looks and acts the way ExhibitPlus does, and I've tried and tried to understand what's posted here with no success. I'm hoping someone can help me.
Simply put, I have the same problem as the original poster: a global footer.inc file that shows up on all nested index pages but none of the slides. I've tried different settings, different versions, the suggestions on this page, nothing seems to work. The invocation code to include the footer seems to be the same in index.htt and slide.htt so I don't get why this is happening.
Note that if I turn off global inclusion of the footer in the ExhibitPlus options, this does work. But I don't want to have dozens of copies of the footer to keep track of.