ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

What's a good strategy for paths (especially for the EE Photo Gallery)?

February 26, 2008 12:15pm

Subscribe [2]
  • #1 / Feb 26, 2008 12:15pm

    moonbeetle

    81 posts

    I’m new to EE but paths seem very important because many modules or configurations need them. However I find it confusing. A fresh EE install has for example:

    /images/uploads

    But what about other kind of uploads, like PDF’s or whatever? Wouldn’t it be more logical to have:

    /uploads
    /uploads/images

    How would you setup paths for EE’s Gallery module? The documentation states that your free to choose but that the images directory might be a good location.

    /images/gallery
    /images/gallery/batch
    /images/gallery/thumbs
    /images/gallery/medium
    /images/gallery/images (ugh!)

    I would rather say:

    /gallery
    /gallery/batch
    /gallery/thumbs
    /gallery/medium

  • #2 / Feb 26, 2008 2:57pm

    aircrash

    293 posts

    I think it’s really a matter of personal preference, as well as the type of content on your site. Personally, when setting up directories, I like to start with general folders, with more specific folders inside, to keep things easier to manage. For example, I might set up an images folder like this:

    images/
    images/global/ (background images referenced in css, logos, etc. stuff that appears on every page)
    images/gallery/
    images/gallery/batch
    images/gallery/thumbs/
    images/gallery/medium/
    images/gallery/large/
    images/posts/ (random images in weblog entries, etc.)

    I also like to create a “files” directory when I’m going to have pdfs or something available to download. Within that directory, I’ll add sub-folders based on the contents. I don’t like the “uploads” title, because, although I’m uploading a file to it from the control panel, someone else may be downloading the file from the site, so telling someone to download a pdf from my uploads seems strange to me.

    My general preference is for more folders/hierarchy than is probably absolutely necessary, but I try to avoid having files and folders mixed in a single directory, since it gets difficult to keep track of things when everything is randomly dumped into a single folder.

    That said, however, I tend to leave the folders that are created in the default EE installation alone, simply because I don’t want to spend the time tracking down all of the paths and settings in the control panel to update them to a customized system.

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases