Folders, Directories, and File Structure

Drupal content (pages for Articles, Basic Pages, Events, Photo Albums & Galleries, aka "nodes") is stored in a database, so the pages do not have a traditional folder/file structure.

Every page gets a number

By default Drupal assigns each page an address like:

Pages are numbered in the order they were created.

Pages can receive fancier URLs

URL aliases (visitor-friendly non-numerical page addresses) are created with the assistance of these Drupal modules (available for all SCLS-hosted Drupal sites):

  • Path: allows users to rename URLs.
  • Pathauto: auto-generates page addresses according to a selection of patterns.
  • Global Redirect: searches for aliases of requested URLs and redirects if found.

Can I still put my pages in folders?

Drupal pages aren't stored in directory folders, but you can assign folder-like URL aliases to Drupal content. Let's imagine a list of pages that have automatically been assigned URL aliases on your site:

Now let's imagine you would prefer the page addresses looked like this instead:

To achieve folder-like URLs for your pages, you will need to change each page's URL alias.

To change URL aliases:

  1. Edit the page that needs to have its URL alias changed.
  2. Scroll to the bottom of the editing form and click the URL path settings tab.
  3. Un-check Generate automatic URL alias.
  4. Type the "folder" name, followed by a slash, followed by the "page" name.
    Example: reference/index
  5. Save the page.

The page will be "moved" to the new URL alias. The old URL alias will cease to work. Any visitors to the old URL alias will see a "Page not found" message.

Clean up broken links

If you made links to a page before changing its URL alias, giving it a new URL alias will break the links. You will need to repair your links to use the new URL alias instead of the old one.

Managing URL aliases

Request access to manage the entire list of URL aliases for your site, Path settings, and Pathauto settings. Select Configuration > [Search and metadata] URL aliases to mange these settings.

Folders DO exist in the File Browser

The File Browser (aka the spot where images/documents/other files are uploaded) uses a traditional file-and-folder structure. Files uploaded via the File Browser should be organized according to a clear, consistently folder and file naming scheme.