• Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint
Share this Page URL
Help

Chapter 9. Using Template Parameters > Building Template Navigation Links

Building Template Navigation Links

The preceding section showed how template expressions could be used to code elements within a page automatically. In this section, you'll see how template expressions can be applied to create navigation links among Web pages. Most pages within a site are linked from a variety of other pages to create the interconnectedness of a true web. Certain sections of a site, however, are intentionally linked from one page to the next in a series. Sequential navigation is a real boon for tutorials and extended articles. However, creating such links to the previous and next pages is a burdensome and error-prone task—unless you build your links with template expressions.

The exact procedure for creating sequential links with template expressions varies according to your site structure and requirements. In the following example, two separate template parameters—pageName and pageNum—will be created in the template. For each series of tutorials, the Contribute user needs to change only one value: pageNum. The values of those template parameters will then be programmatically combined in the template expressions to automatically build the href attribute for the actual links.


PREVIEW

                                                                          

Not a subscriber?

Start A Free Trial


  
  • Creative Edge
  • Create BookmarkCreate Bookmark
  • Create Note or TagCreate Note or Tag
  • PrintPrint