Skip to content
View in the app

A better way to browse. Learn more.

Web Designer Forum

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Folder structure for multiple galleries

Featured Replies

Hi

 

I'm new to website design, so apologies for asking a basic question.

 

I'm want to start adding images to my gallery pages and would like to start with 'best practice' re setting up folders. I have an 'images' folder directly under the root folder and, from what I've read, it's best to have all images in one folder.

 

I was going to place the images for each gallery within a sub folder, ie

myWebsite > images > gallery1 (gallery2, gallery3 etc).

 

Does that sound ok, or would if be better/faster loading etc if the gallery folder are directly under the root folder, ie: myWebsite > gallery1 (gallery2, gallery3 etc).

 

Any advice that more experienced designers can give me would be much appreciated.

 

Many thanks.

It depends how anal you want to get over it.

Personally I'd have 'root > img > galleries > gallery_1'

 

I think the most important thing is to structure it how you feel your mind would be able to flow the best.

Edited by MikeChipshop

Provided your system cannot have duplicate image names and your not going to hit directory size limits/have performance issues* it doesn't really matter whether you use a single repository or a structured repository.

 

I mean, your gallery system is loading the images in, people are not navigating these folders, so it really makes no odds.

 

 

* Some servers have limits to the number of files that can exist in a directory, we're talking tens of thousands though. Also if you have a directory with tens of thousands of images you could find a directory read overhead, but again unless you're talking about huge volumes of images it's not going to be an issue.

Edited by FizixRichard

  • Author

It depends how anal you want to get over it.

Personally I'd have 'root > img > galleries > gallery_1'

 

I think the most important thing is to structure it how you feel your mind would be able to flow the best.

 

Thanks, Mike. I prefer 'root > img > galleries > gallery_1' and, as there seems to be no problem re slowing things down or whatever, I'll go with that. Makes things easier to find.

Create an account or sign in to comment

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.