There are advantages in working with hierarchies. First you think at a higher level, then you move down to the details at a lower level. Hierarchies invite us to classify, to divide and ultimately to analyze and plan our work better.
An advantage of the web is that, if we look at webapps or web sites, the structure of the URLs reflects a hierarchical organization. To make an example, let's think of a webapp made of nine pages. This can be visualized as follows:
Webapp page hierarchy:
- Web design
- Java development
- About us
A Portofino application is made of (possibly many) pages organized in a hierarchy. A page can have child pages under it. A child page can have further child pages. The pages at the top level are called root pages. The page hierarchy can have as many levels as needed.
URLs and fragments
Each page has an associated URL. A URL can be typed in the browser, can be bookmarked or can be sent by email to a friend or colleague.
The last part of a URL is the fragment.
The breadcrumbs are the composition of the names of the pages from a root page to the current page.
The following table summarizes the breadcrumbs/URLs/fragments for the example.
|Services > Web design||/services/web-design||web-design|
|Services > Java development||/services/java-development||java-development|
|Services > Helpdesk||/services/helpdesk||helpdesk|
|Intranet > HR||/intranet/hr||hr|
|Intranet > Directory||/intranet/directory||directory|