Capital letters in Zenphoto's album folder name and URL

Hi,
I noticed that when creating new albums via the admin panel, capital letters are kept in the physical folder's name, and in the URL as well, as I suppose Zenphoto retrieves the album's URL by checking the folder's name.
So, for example, if I create a new album named "Test", the url is like this: http://mysite.com/Test
In my opinion it doesn't look fancy at all. It should look like this: http://mysite.com/test
Is there a way to force Zenphoto to automatically use lower case letters only in the folder's physical name when creating new albums? Like a htaccess hack or anything like that? I know I can rename it manually, but it's for a site that has dozens of albums and being able to do this automatically would save me a lot of time.
Thanks

Comments

  • acrylian Administrator, Developer
    Not by default. We have it that way since UNIX file systems do care for the case and people might want to use them for whatever reason. You can of course also name it lowercase and just change the title to uppercase afterwards. You can also use the seo_cleanup plugin to clean album and file names afterwards (this might also remove special chars).
  • Ok, thanks!
  • Recently I noticed this behaviour as well. In my opinion this is not only "not fancy" or SEO unfriendly, but also allows for possible problems when migrating your Zenphoto installation to a different host (running a different OS).
    I'd prefer a filter (option?) to convert the album title used when creating an album into an all lower-case directory name without special characters, i.e. consisting of 0-9, a-z, dash and underscore.
  • acrylian Administrator, Developer
    As mentioned above is a plugin to fix this if you didn't give it a lower case name already.. But feel free to open a ticket.
Sign In or Register to comment.