This course will be retired on February 24, 2020.
Bummer! This is just a preview. You need to be signed in with a Basic account to view the entire video.
Start a free Basic trial
to watch this video
Every piece of content we can create is a type of object Drupal calls a Node.
Key Terms:
Node: Any piece of individual content, such as a page, poll, article, forum topic, or a blog entry, stored on a Drupal website
URL's are named and numbered in the order that they are created.
-
0:00
Right now if we click over to our about page.
-
0:02
It's URL is
-
0:06
localhost:8888/node/1.
-
0:15
Or if you've made more content than that, you might end up with
-
0:18
/node/3, or something along those lines.
-
0:25
This is pretty much because every piece of content we can create,
-
0:28
is a type of object Drupal calls a node.
-
0:31
There are a lot of different content types for nodes, like announcements,
-
0:37
blog posts, terms and conditions, or about pages.
-
0:42
But every piece of content is a node.
-
0:46
Different kinds of content share some common properties,
-
0:49
because they are all nodes.
-
0:51
For instance, they all have a title,
-
0:54
an author, a creation date, and some body content.
-
0:59
Not all of these properties need to be displayed though.
-
1:02
For example, you wouldn't want to show the author on an about us page,
-
1:07
because it's probably written by you, the developer.
-
1:10
Later you'll learn how to create your own content types.
-
1:14
Since the about page was the first node that we created,
-
1:20
It was automatically assigned the URL, node/1,
-
1:26
to be attached to the base URL, localhost:8888.
-
1:32
Now what is our base URL?
-
1:35
Oh, it's just our home based.
-
1:37
If we go directly to local host 8888, it takes us to the front page, Home.
-
1:46
But, if we type in the rest of the URL, and
-
1:49
go to local host 8888/node/1.
-
1:56
It takes us directly back to our About Us page.
-
2:00
Next, let's give our about page a more friendly address, than node one.
-
2:04
To change this, click over to the about page's edit tab, and
-
2:09
scroll down to the tabs at the bottom of the page.
-
2:13
Click on the URL path setting's tab.
-
2:17
And type in the word about.
-
2:21
Don't add slashes before or after the address in this field.
-
2:25
They're added automatically.
-
2:27
Click on Save, and we're back to our homepage.
-
2:31
Now we can access our about page with the address,
-
2:35
local host: 8888/about.
You need to sign up for Treehouse in order to download course files.
Sign up