Guideline 2.4 Navigable states that users should be offered ways to help them navigate, find content, and determine where they are.
The main idea here is to allow people who navigate sequentially through content more direct access to the primary content of the Web page.
When components are repeated in all pages, there should be links for the user to load other contents, skipping the repeated components.
In GeneXus, the objects included in the same Master Page object behave as indicated above. The links to pages using the same Master Page (MP) load the web page inside the MP and the focus is positioned on that content (not on the other components).
Another requirement is to bypass blocks, so a mechanism should be available to bypass blocks of content that are repeated on multiple Web pages.
A news organization's home page contains the main story in the middle of the page, surrounded by many blocks and sidebars for advertising, searching, and other services. There is a link at the top of the page that jumps to the main story. Without this link, a keyboard user needs to tab through approximately 40 links to reach the main story; the screen reader user has to listen to 200 words, and the screen magnifier user must search around for the location of the main body.
Consider the following example of the W3C web page, where the main content is loaded using the "skip" button.
This is achieved using an anchor. In GeneXus you may use the Format property (X Evolution 1, 2 and 3) of variables or text blocks to assign HTML code to it, i.e.:
textblock1.Caption = '<h3><a name="w3c_content_body" id="w3c_content_body"></a>Participar</h3>'
The skip action should be associated with a link like this:
skip.Caption = '<a href="#w3c_content_body">saltar</a>'
Another requirement is that pages should have titles that describe the topic or purpose of the page.
In GeneXus, use the form Caption property.
There should be more than one way available to locate a Web page within a set of Web pages. In GeneXus, you can use the Full-Text Search in Applications.
For example, as the user navigates through categories and subcategories, a breadcrumb trail should show the current location in the hierarchy of categories.
In GeneXus, take as an example the automatically generated code for the Work With Pattern.
In the Master Page object (RWDMasterpage) we have the following code:
WCRecentLinks.Object = RwdRecentLinks.Create(Form.Caption, ContentHolder.Pgmname)
The RwdRecentLinks Web Component object uses the Web Session data type to store the visited pages and displays the information using a Grid control. See the code of the load event to take it as an example.
Every page should contain a link to the portal home page.