Difference between revisions of "User:Pegeraki/HB Template"
Line 5: | Line 5: | ||
When you begin editing the ECE Template, the first thing you need to look for is this line: | When you begin editing the ECE Template, the first thing you need to look for is this line: | ||
− | <p style="margin-left: 10px; background-color: #F0F0F0; border: 1px solid black; padding: 5px; width: | + | <p style="margin-left: 10px; background-color: #F0F0F0; border: 1px solid black; padding: 5px; width: 76%"><code>$pageTitle = "ECE: ";</code></p> |
Once you find this line, you will need to finish it by filling in what you want the rest of the web page title to be. For instance, if I am writing a page which would appear in the News section of the ECE site, the line would read: | Once you find this line, you will need to finish it by filling in what you want the rest of the web page title to be. For instance, if I am writing a page which would appear in the News section of the ECE site, the line would read: | ||
− | <p style="margin-left: 10px; background-color: #F0F0F0; border: 1px solid black; padding: 5px; width: | + | <p style="margin-left: 10px; background-color: #F0F0F0; border: 1px solid black; padding: 5px; width: 76%"><code>$pageTitle = "ECE: ";</code></p> |
Doing this will ensure that your webpage displays the proper title. | Doing this will ensure that your webpage displays the proper title. | ||
The next line of code you are looking for is this one: | The next line of code you are looking for is this one: | ||
− | <p style="margin-left: 10px; background-color: #F0F0F0; border: 1px solid black; padding: 5px; width: | + | <p style="margin-left: 10px; background-color: #F0F0F0; border: 1px solid black; padding: 5px; width: 76%"><code><?PHP //sidebar(""); ?> </code></p> |
In between of the two quotation marks, you need to fill in the name of the correct sidebar you are going to use. A list of the current sidebars can be found at: http://www.ece.ncsu.edu/tools/sitemanager/sidebars/index.php | In between of the two quotation marks, you need to fill in the name of the correct sidebar you are going to use. A list of the current sidebars can be found at: http://www.ece.ncsu.edu/tools/sitemanager/sidebars/index.php | ||
When you are ready to place the main body of your webpage, that entire code should go in between these two tags: | When you are ready to place the main body of your webpage, that entire code should go in between these two tags: | ||
− | <p style="margin-left: 10px; background-color: #F0F0F0; border: 1px solid black; padding: 5px; width: | + | <p style="margin-left: 10px; background-color: #F0F0F0; border: 1px solid black; padding: 5px; width: 76%"><code><td valign="top">&nbsp;</td> </code></p> |
Revision as of 14:29, 6 March 2006
WolfTech Webteam Handbook
The ECE Template
The ECE Template is located in shared folder of the beta folders directory (eos/engrwww/ece/beta/shared). Please do not modify this file directly. Instead, when you begin working on a page, make a copy of template and place it in your beta folder. By doing this, you can begin editing the file in your beta folder direct and just resave it with another name.
When you begin editing the ECE Template, the first thing you need to look for is this line:
$pageTitle = "ECE: ";
Once you find this line, you will need to finish it by filling in what you want the rest of the web page title to be. For instance, if I am writing a page which would appear in the News section of the ECE site, the line would read:
$pageTitle = "ECE: ";
Doing this will ensure that your webpage displays the proper title.
The next line of code you are looking for is this one:
<?PHP //sidebar(""); ?>
In between of the two quotation marks, you need to fill in the name of the correct sidebar you are going to use. A list of the current sidebars can be found at: http://www.ece.ncsu.edu/tools/sitemanager/sidebars/index.php
When you are ready to place the main body of your webpage, that entire code should go in between these two tags:
<td valign="top"> </td>