Dashboard > blojsom > ... > Users Guide > Page URL Parameter
  blojsom Log In   View a printable version of the current page.  
  Page URL Parameter
Added by David Czarnecki, last edited by David Czarnecki on Sep 22, 2005  (view change)
Labels: 
(None)

In blojsom, you can specify a certain template to be loaded for a particular flavor. This may be useful for presenting information relevant in a particular context.

For example, the default installation uses a different template for the HTML flavor when presenting comments and trackbacks left for a particular blog entry. You will notice that if you click on the link for the number of comments or trackbacks, that a URL parameter page= is added to the URL for a given entry. Depending on the name given in the URL parameter, blojsom will load the page-specific template.

The page-specific template loading uses the following lookup procedure.

  1. If the page URL parameter is specified, blojsom will look for:

    flavor_template-page.flavor_extension

  2. If the page URL parameter is not specified, or the flavor_template-page.flavor_extension file is not found, blojsom will look for:

    flavor_template.flavor_extension

About the example
  1. blojsom's default flavor is HTML and is presumed if not given in the following examples.
  2. Assume blojsom's default to use Velocity templates in the following examples.
  3. The main template file for the HTML flavor is html.vm.

Site running on a free Atlassian Confluence Open Source Project License granted to blojsom. Evaluate Confluence today.
Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.5.4 Build:#809 Jun 12, 2007) - Bug/feature request - Contact Administrators