iphlex systems navigation
iphlexwebphlexdocumentation > navigation
show contents
hide contents

 

 

navigation texts

In various parts of a web site it can useful to offer users an easy way of navigating between different pages. webphlex contains powerful, flexible and language-independant methods of generating such code.

This is done in one of two ways. The first method is to offer the user a menu pointing to the various target pages. This could be a complex Javascript pull-down menu or a simple collection of hypertext links - that's entirely up to the creativity of the designer.

In the second method, blocks of code are generated for the first, last, previous and/or next target pages.

The blocks of code generated can be called up using replacement codes, either as part of a page template or as data (at page or element level), as often as necessary.

These two navigation methods are used in various situations. In page navigation, the target pages in question are the various files (for pages 1, 2 ... n) generated for a main page. In element navigation, they are the elements within a page or the different detail pages produced by these elements. In site navigation, they are the various page groups above the current page group in the site hierarchy, and in language navigation, they are the different languages in which the page group is generated.

Next to the various navigation texts in the page group screen, you'll find buttons for previewing the generated output in the browser click for more information about this button ) or as text ( ) .


(image_0015)

see also:

top of page
'menu' type navigation

A 'menu' type navigation text is made up of four fields, which could be regarded as mini-templates:

  • a block of code which starts the navigation text,
  • a block of code which is generated for each item in the menu,
  • a block of code which ends the navigation text,
  • if the current record does not appear in the menu, a block of code which will replace it.

These fields can contain any type of replacement codes, and the block of code generated from them will itself be used to replace a certain replacement code.

If the current page appears in the menu, the page will contain a link to itself, e.g. menu of available languages will also contain the language currently being used. If the current page does not appear in the menu it can be replaced by an alternative text, e.g. the code used for the other pages but without a hyperlink.

Using as an example the page navigation text of the page you're now looking at:
 
page list: begin text: <!-- start page_navigation -->
<UL>
<FONT FACE="#FONT#" SIZE=2>
  <!-- start page_navigation -->
<UL>
<FONT FACE="arial" SIZE=2>
 
page list: main text: <LI><B><A HREF='#PAGE_URL#'>
#PAGE_TITLE#</B></A>
<LI><B><A HREF='navigation.html'>
general</B></A>
(repeated for every page except the current page)
 
page list: end text: </FONT>
</UL>
</FONT>
</UL>
 
page list: alternative text for current main page: <LI><B>#PAGE_TITLE#</B>
<IMG SRC="images/arrow_right_2.gif">
<LI><B>general</B>
<IMG SRC="images/arrow_right_2.gif">
(only for current page, used instead of the main text)

The text navigation generated in this way can be called up using the replacement code #PAGE_NAVIGATION#, giving the final result:

see also:

top of page
first, last, previous and next target pages

The first, last, previous and next navigation texts are each made up of two fields, which could be regarded as mini-templates:

  • a block of code for the first, last, previous c.q. next page relative to the current page
  • an alternative block of code to be used when there is no first, last, previous c.q. next page.

These fields can contain any type of replacement codes, and the block of code generated from them will itself be used to replace a certain replacement code.

An alternative block of code can be specified for situations in which the first, last, previous c.q. next page either does not exist or may not be required, e.g. in the case of the navigation block for the first page, code to be placed on the first page itself.

Using as an example a 'next page' navigation text for the page you're now looking at:
 
template for nav. block: next page: <A HREF='#Next:PAGE_URL#'>
<IMG SRC="go_right.gif" BORDER=0
ALT='#TEXT:*goToPage# #Next:PAGE_NUMBER# /
#NUMBER_OF_PAGES# : #Next:PAGE_TITLE#'></A>
  <A HREF='navigation2.html'>
<IMG SRC="go_right.gif" BORDER=0
ALT='go to page 2 /
2 : types of navigation'></A>
 

The navigation text generated in this way can be called up using the replacement code #NEXT_PAGE#, giving the final result: go to page 2 / 2 : types of navigation

see also:

top of page
iphlexwebphlexdocumentation > navigation Copyright © 2006 iphlex systems