[thelist] [CODE] bloated image src names

Howard Cheng howcheng at ix.netcom.com
Wed Nov 13 12:15:01 CST 2002


I've used both methods. I find that with images necessary for design and
whatnot, it's easiest to stick to an organized folder structure, for a
number of reasons previously stated in the debate, but mostly because it
makes things easier to find, especially when introducing new developers to
the project, or when I come back to it after a number of months.

But I'll go with the flat image directory when it comes to user-added
images (such as via a content management system). In this case, it's much
easier to give each image a unique name, usually with the database ID in it
(such as, "418_image1.gif") and throw 'em all in a single directory, so
that when making dynamic content pages you don't have to figure out where
your content is in the site architecture. You just use <img
src="/cms_images/[filename]">.


::::::::::::::::::::::::::::::::::
Howard Cheng
http://www.howcheng.com/ <-- NEW!
howcheng at ix dot netcom dot com
AIM: bennyphoebe
ICQ: 47319315




More information about the thelist mailing list