If your unit resides on the Unix server and your files end in the .html extension, you can use the SSI version of the wrapper system.
Download the local SSI Wrapper files in ZIP format (6 KB)
To get started, create a simple file and insert the appropriate commands to utilize the wrapper header and footer.
<!--#include virtual="/inc_uncg/header.html" --> <h2>Page Title</h2> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam id mauris. Mauris nec mauris at sapien tristique suscipit. Vivamus aliquet mattis ipsum. Quisque erat dolor, facilisis a, bibendum a, volutpat ac, tortor. Duis felis wisi, mollis vitae, rhoncus in, rutrum quis, ipsum. Proin in mi. Curabitur tincidunt. Nunc neque. Proin gravida metus eleifend sapien. Donec placerat nulla id urna. Donec est.</p> <!--#include virtual="/inc_uncg/footer.html" -->template.html
Upload the file to your unit webspace and view it using a browser. Does it appear with the UNCG Web3 Branding?
Each unit requires a unique file that declares the variables for the entire unit.
Let us say that a new department was created at UNCG named the Office for Left-Handed Students, or OLH. If the Office wanted to employ the Web3 Accessible Wrapper System, it would need to create a file that declared the variables for the departmental website:
If implementing the unit on the Unix server in SSI, the office would create a directory named inc_unit within their departmental space: /afs/uncg.edu/html/olh/inc_unit/. Within that directory, they would create a unit_variables.html file:
<!-- UNCG WEB3 WRAPPER::SITE VARIABLES::VERSION 1.0.1::07/14/2008 --> <!--#set var="UNIT_NAME" value="Left-Handed Students" --> <!--#set var="UNIT_URL" value="htp://www.uncg.edu/olh/" --> <!--#set var="DEPT_NAME" value="Office for Left-Handed Students" --> <!--#set var="DEPT_LOCATION" value="Suite 101, EUC" --> <!--#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_LAYOUT" value="LIQUID" --> <!--#set var="UNIT_MENU" value="/olh/inc_unit/unit_menu.html" --> <!--set var="UNIT_HEADER" value="/olh/inc_unit/unit_header.html" --> <!--set var="UNIT_ADMIN" value="/olh/inc_unit/unit_admin.html" -->/olh/inc_unit/unit_variables.html
The wrapper system builds a custom page by incorporating the unit variables into the header and footer. In order for this to occur, the wrapper needs to understand what unit the page is associated with.
On your page, prior to including the header.html, you must declare a UNIT_VARS variable. The value should be the path, from root, to your unit's unique variables file. By passing the UNCG Web3 Wrapper a specific UNIT_VARS value, you are telling the system to override the default variables with your new variables of your unit.
<!--#set var="UNIT_VARS" value="/departmental code/inc_unit/unit_variables.html" --> <!--#include virtual="/inc_uncg/header.html" --> <h2>Page Title</h2> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam id mauris. Mauris nec mauris at sapien tristique suscipit. Vivamus aliquet mattis ipsum. Quisque erat dolor, facilisis a, bibendum a, volutpat ac, tortor. Duis felis wisi, mollis vitae, rhoncus in, rutrum quis, ipsum. Proin in mi. Curabitur tincidunt. Nunc neque. Proin gravida metus eleifend sapien. Donec placerat nulla id urna. Donec est.</p> <!--#include virtual="/inc_uncg/footer.html" -->template.html
If you are a virtual host account, here is the good news: your unique /inc_unit/unit_variables.html file should be recognized and utilized by the wrapper system automatically! Reload your test file and verify that the correct information is now appearing in the footer and in the Title Bar of the browser.
Reload your page and confirm that the wrapper is incorporating your specific unit content.
The wrapper system can build a custom page by incorporating page-specific variables into the header and footer. These variables occur only on the page on which they are explicitly stated. In order for this to occur, the wrapper needs to passed page specific commands.
On your page, prior to including the header.html, declare a PAGE_TITLE variable.
<!--#set var="UNIT_VARS" value="/departmental code/inc_unit/unit_variables.html" --> <!--#set var="PAGE_TITLE" value="This is a Template Page" --> <!--#include virtual="/inc_uncg/header.html" --> <h2>Page Title</h2> <p>Lorem ipsum dolor sit amet, consectetuer adipiscing elit. Etiam id mauris. Mauris nec mauris at sapien tristique suscipit. Vivamus aliquet mattis ipsum. Quisque erat dolor, facilisis a, bibendum a, volutpat ac, tortor. Duis felis wisi, mollis vitae, rhoncus in, rutrum quis, ipsum. Proin in mi. Curabitur tincidunt. Nunc neque. Proin gravida metus eleifend sapien. Donec placerat nulla id urna. Donec est.</p> <!--#include virtual="/inc_uncg/footer.html" -->template.html