Custom Unit Content: Unit HTML Head
The wrapper system allows the web developer to include customized content on all pages of a unit.
Unit Variables
UNIT_HEADER |
Path to included document |
If included, the wrapper implements the file WITHIN the Document HEAD, directly underneath UNCG Global Stylesheets |
To create a custom Unit HTML header file, create a file containing valid XHTML. Please note: Because this file is going to be included INTO an existing web page, it does not require all the formal XHTML document tags, such as <html>, <head> and <body>.
UNIT_HEADER can be a unit's most powerful tool for customization. Any valid XHTML that can exist within a document's HEAD, such as meta tags, links to stlyesheet or javascript files or even style and script tags, can be placed in the file:
<meta name="author" content="AUTHOR'S NAME" />
<link rel="shortcut icon" href="PATH TO ICON" />
<!-- UNIT STYLESHEETS -->
<link rel="stylesheet" type="text/css" media="screen" href="PATH TO UNIT SCREEN STYLESHEET" />
<link rel="stylesheet" type="text/css" media="print" href="PATH TO UNIT PRINT STYLESHEET" />
<style type="text/css">
UNIT SPECIFIC STYLES
</style>
unit_header.html
Place the file in your unit's inc_unit directory.
Implement the UNIT_HEADER variable in your unit_variables.html page and designate the file via it's path as the value of the variable.
<!--#set var="UNIT_HEADER" value="PATH TO unit_header.html" -->
unit_variables.html
The Office for Left-handed Students
Having decided to not utilize the default values for the Goldbar, and properly understanding the Web3 Unit Requirement's restrictions, the Office for Left-hand Students creates a custom Goldbar navigation:
<meta name="author" content="Lew Leftward, OLH, UNCG" />
<link rel="shortcut icon" href="http://www.uncg.edu/favicon.ico" />
<!-- UNIT STYLESHEETS -->
<link rel="stylesheet" type="text/css" media="screen"
href="http://www.uncg.edu/olh/inc_unit/style/olh-screen.css" />
<link rel="stylesheet" type="text/css" media="print"
href="http://www.uncg.edu/olh/inc_unit/style/olh-print.css" />
<style type="text/css">
h1 {font-family:Arial, sans-serif;color:#900;}
</style>
/olh/inc_unit/unit_header.html
The Office for Left-handed Students implements the UNIT_ADMIN variable in its unit_variables.html page and designates the file via it's path as the value of the variable.
<!--#set var="DEPT_NAME" value="Office for Left-Handed Students" -->
<!--#set var="DEPT_ADDRESS" value="EUC Suite 101" -->
<!--#set var="DEPT_PHONE" value="336.344.LEFT" -->
<!--#set var="DEPT_FAX" value="336.344.1111" -->
<!--#set var="DEPT_EMAIL" value="lefty@uncg.edu" -->
<!--#set var="UNIT_NAME" value="Left-Handed Students" -->
<!--#set var="UNIT_URL" value="htp://www.uncg.edu/olh/" -->
<!--#set var="UNIT_HEADER" value="/olh/inc_unit/unit_header.html" -->
/olh/inc_unit/unit_variables.html