Bug: Duplicate titles.

I noticed a bug. I'm not sure if this is theme specific (zpbase), but perhaps this could be useful either way.

At the homepage, I got:
"SilverSnake Photography | SilverSnake Photography"

In the top level album "Portraits", for example, I got:
"Portraits | SilverSnake Photography | SilverSnake Photography"

That tells me that it's not just tacking on another gallery title for each album level. I checked my settings and noticed that "Gallery title" and "Website title", under Admin->Options->Gallery, will duplicate if you use the same data.

I'm not sure if this is intentional, but generally they'd be the same, and you wouldn't want too many levels of "|" separated data in your page title. If you leave "Gallery title" blank, it will fill out the other one, leaving "| |" in there, which is (b)ugly.

I think the fix for this is either to remove "Website title" entirely and only use "Gallery title", or have some check to see if both are set and remove one from the url before writing it.

Comments

  • acrylian Administrator, Developer
    The Website title/url is meant to be used if you use Zenphoto together with another website that for example is run by another system. Don't set it if your site is Zenphoto only.
Sign In or Register to comment.