Need help building galleries with non-sequential names
Posted: Fri Mar 04, 2011 9:38 pm
I'm having trouble figuring out how to build a gallery for a list of wallpapers that, as a whole, don't have sequential naming schemes. One example would be:
image/img1_800.jpg
image/img1_1024.jpg
image/img1_1280.jpg
image/img2_800.jpg
etc.
Other conventions might include (though not simultaneously)
image/img1_800x600.jpg
image/img1_1024X768.jpg
image/img1_1280x1024.jpg (notice the two changing number sets)
as well as,
image/img1_s.jpg
image/img1_m.jpg
image/img1_l.jpg (notice the use of non-sequential letters)
In the past I've had to either build separate galleries for each resolution listed, or make an absolutely crazy large gallery with thousands of invalid links. I'm sure there's a simple solution, but as previously stated, I've zero experience with java. Thank you for you time and patience.
PS - Also, if it's not to much trouble, could you briefly explain why the answer you give works, so that I don't have to ask again if other similar naming schemes show up, and I can just re-tailor it to the task. Thanks again.
image/img1_800.jpg
image/img1_1024.jpg
image/img1_1280.jpg
image/img2_800.jpg
etc.
Other conventions might include (though not simultaneously)
image/img1_800x600.jpg
image/img1_1024X768.jpg
image/img1_1280x1024.jpg (notice the two changing number sets)
as well as,
image/img1_s.jpg
image/img1_m.jpg
image/img1_l.jpg (notice the use of non-sequential letters)
In the past I've had to either build separate galleries for each resolution listed, or make an absolutely crazy large gallery with thousands of invalid links. I'm sure there's a simple solution, but as previously stated, I've zero experience with java. Thank you for you time and patience.
PS - Also, if it's not to much trouble, could you briefly explain why the answer you give works, so that I don't have to ask again if other similar naming schemes show up, and I can just re-tailor it to the task. Thanks again.