ZenphotoCMS Forum
Capital letters in Zenphoto's album folder name and URL - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: Capital letters in Zenphoto's album folder name and URL (/thread-12068.html)



Capital letters in Zenphoto's album folder name and URL - raffychan - 2014-11-14

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




Capital letters in Zenphoto's album folder name and URL - acrylian - 2014-11-14

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).




Capital letters in Zenphoto's album folder name and URL - raffychan - 2014-11-15

Ok, thanks!




Capital letters in Zenphoto's album folder name and URL - Tobias - 2014-11-19

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.




Capital letters in Zenphoto's album folder name and URL - acrylian - 2014-11-19

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.