Skip to main content
Drupal Documentation for SCLS

Main navigation

  • Home
  • How-To Info for Library Staff
  • Drupal 10
  • Help

Breadcrumb

  1. Home
  2. How-To Info for Library Staff

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: http://www.example.org/node/1

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:

  • http://www.example.org/reference
  • http://www.example.org/careers-employment
  • http://www.example.org/ask-a-question

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

  • http://www.example.org/reference/index
  • http://www.example.org/reference/careers-employment
  • http://www.example.org/ask/ask-a-question

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.

Book traversal links for Folders, Directories, and File Structure

  • Creating Photo Albums & Galleries
  • Up
  • Blocks
  • Managing Accounts for Your Drupal Site
  • Images
  • Creating and Editing Website Content
  • Uploading Files to Media
  • Changing Menu Links
  • Creating Photo Albums & Galleries
  • Folders, Directories, and File Structure
  • Blocks
  • Paths and URL Aliases
  • Configuring Site Information
  • Developer Permissions
  • Homepage Variations
  • Events/Programs with repeating dates
  • Registration for Events/Programs
  • What is Cron?
  • Avoid mixed content warnings (HTTPS/HTTP)
  • LINKcat Title List (Experimental)
  • Performance settings: Cache pages for anonymous users
  • Slick Carousel
  • Uploading Files with IMCE

Tags

accordion (1)
account (2)
anchors (1)
blocks (0)
cache (1)
carousel (2)
CKEditor (5)
configuration (1)
content types (1)
CSS (1)
disable rich-text (1)
Drupal 10 (15)
Drupal 9 (16)
email (2)
embed code (1)
Entity Registration (5)
events (6)
file browser (1)
files (4)
files media (1)
folders (1)
formatting (2)
front page (3)
Google Analytics (1)
headings (2)
HTML (1)
iframe (2)
images (4)
imce (1)
Layout Builder (3)
link a pdf (1)
links (5)
login (1)
media (2)
menus (3)
nodes (1)
openid (1)
paste as plain text (1)
paths (4)
performance (1)
photo albums (1)
photo galleries (1)
redirects (3)
registration (5)
remove format (1)
repeat dates (2)
reports (1)
revisions (1)
sidebars (0)
site name (1)
slogan (1)
source (1)
sticky (2)
text formats (1)
themes (1)
toolbar (2)
URL aliases (4)
Webform (2)
widget (1)