By Castell on
Hi everyone,
although i was searching in google and here, i couldnt find a concrete answer for my general question.
As i noticed, the pages of a drupal website are adressed via noder numbers like www.name.com/node/1515 .
Now i heard on many placed, that nodes are just certain bits of information, like a blog entry, a book page
and so on. So a page can consist of many nodes. Now my question is:
What node is being adresses by the url node numer? (In my example 1515)
Is it the number of the first displayed node or maybe all displayed nodes on a page
are being composed under one "superior"node?
Thanks for any answers in advance,
greets,
Castell
Comments
Nodes
It depends.
You can have a page with a lot of articles. Every article in itself is a node. The page is not.
You can have a page, like contact-page, which in itself is a node.
So if your URL is www.example.com/node/1515 then the whole page is a node (like the above mentioned contact-page). The node-number is refering to the page.
(whoooo, very confusing stuff...)
Maybe you should check out: http://store.lullabot.com/products/understanding-drupal for an overview of terms like this.
Views and nodes
Also, with the exception of the front page, when you have many nodes on a given page then they are likely to be the product of the 'Views' module. The views module can create entire pages, blocks, or RSS feeds which consist of nodes. In the case where a page is created by views which contains many nodes then you define a URL for this page. This URL doesn't relate to any specific node. For example you may chose to define a page with the URL www.example.com/recent-nodes which displays a list of the 10 most recently published nodes in a given category (look at the Taxonomy module for categorisation etc).
In the case of my site I've used views to create this page which provides a preview of a few nodes which are all beaches:
www.ishigaki-japan.com/beaches
I chose the URL above when I defined the 'View'. It in no way relates to an individual node.
I used 'Taxonomy' to indicate that certain nodes described 'Beaches'. During the process of defining the 'View' I specified that I only wanted Beaches to be listed. I also specified that I only want a preview to be shown.
If you click on any of the beaches you go to the full node. The URL for each of these nodes has also been defined manually by myself via the 'Path' module.
Okay, thank you for your
Okay, thank you for your explanation.
For now i have just one more little question:
On a freshly installed drupal page i added one node of the type "page".
I could reach it under the number 2 (/node/2).
So i thought that the front page has the node number 1 but
when i type it in, it says there is no node with the number one.
Now why isnt there any node/1 ?
Is it reserved for any internal processes?
How can i create or change it?
Castell
Deleted?
Have you deleted a node?
On /admin/content/node you can see which nodes you have on your site.
What are you trying to do?
I'm not sure about the node/1 naming but are you simply trying to define a page as the front page. If so, create your page 'node/2' then go to 'Site Information' and enter the name of the node in 'Default Front Page'.
If you don't want any other nodes to go on the front page by default make sure you uncheck 'Promoted to Front Page' when you create the Pages. You can modify the Page content type to uncheck this default setting too if you like.
I'm not sure if that helped or not, but don't worry about node/1. Eventually you'll probably want to use nicer path names anyway so it's not going to be a big concern.