Introduction
In a Web Model, an element is accessible when it's the target of a link. This means that if you have a Web application with three pages and you want every page to be accessible from all the others, you have to use six links. This way clearly doesn't scale with the growth of the number of elements.
Here's a model with three pages:
Here's a model with five pages:
Landmark property
To solve the problem given by the usage of many links, WebRatio provides the Landmark property. Defining an element as Landmark means that the element is reachable from all the elements belonging to the same logical container (Site view, Area).
Here's an equivalent model of the example above, using the Landmark property instead of inter-page links.
To group together homogeneous elements it's possible to use Areas. Areas are logical containers of pages and operations. Every area has it's default element. The default element is the element activated when the user accesses the area (as the "Home Page" for a Site View).
Consider the following Area "Products". It groups together all the pages on products:
Note that:
-
An Area can be itself set as Landmark, meaning that it's reachable from all the elements inside and outside it.
-
The "All Products" Page is the default page, which means that when the user accesses to the "Products" Area, he will access to the "All Products" Page.
-
It's possible to set inner elements as Landmark, meaning that these elements are reachable from all the elements inside the Area
In this example, the page "Product details" is not landmark, and is reachable from all the pages with a link pointing to it.
Moreover, it's possible to create sub-areas, as in the following example: