Hi, first of all, GREAT product! It has everything I need, including helpful documentation - I've been a user for 12 months, and this my first question.
I have albums & sub-albums that work well, but my naming convention was longer than it should have been. It's perfect for the albums, but when the image name is appended, the pretty URL is too long.
What I'm trying to do is leave album URLS untouched, but for the image - change the URL to a shorter version. For example, using database fields => from "domain.com/albums.folder/images.filename" to "domain.com/albums.id/images.filename"
I'm working my way back through the template functions, but can someone please point me in the right direction? ie. which file controls the path.
Thanks!
Comments
Photo names will always be unique, which means I could serve up a URL that is (only) the name of image, without the album. I've turned off mod_rewrite (taking htaccess out of the equation) and just want to accomplish this:
index.php?image=photo.jpg
(instead of index.php?album=name&image=photo.jpg
Been poring over function files, but just can't seem to nail this down. Any direction would be much appreciated.
Thank you
A plugin can attach to the `load_request` filter and make any changes to the URL that it desires. You will have to recognize your situation and set the album and image parameters appropriately.
I do hope you have a means to insure that the image names stay unique. Otherwise you will have "strange" behavior problems. E.g. a viewer clicks on an image thumb in album A and is taken to an image in album B instead.
Image names will always be unique as they are people/event based and I'm the only one uploading
My last resort would be to shorten the folder names IN the database. Not ideal as that means 60+ lines added to .htaccess (301s).
It has become more urgent as the urls repeat key text, which has cost me in google.
Plugins are outside my expertise - should I get in touch via the paid support link?
Thanks