Chrome File Directory — Configuration¶
The Chrome File Directory has been designed to be heavily customizable. More file and folder listings can be added, and directory paths can be changed, and the icons for each type of file can be changed. Just search for and change the placeholder values in each code section. Additionally, ensure that you have deleted all the extra file and folder rows that are unnecessary for your file listing, so not to confuse users.
All of these instructions require a text editor to be installed.
Basics¶
- If you would rather have the styling for the page in its own separate location, copy the
style.cssfile to that location and link it in the top of theindex.htmlfile. To do so, follow the steps below: - Delete lines 9 through 68.
- Find the link to the
style.cssfile. - Add
<link rel="stylesheet" href="style.css">to line 9. - Update the link between the
href="..."to the exact link to thestyle.cssfile. -
You're all set to have an external style sheet!
-
Line 69: Update the
exampleplaceholder text between the<title>tags with the actual directory name. This will be the title of the webpage.
- Line 73: Update the
:\directoryplaceholder text between the<h1>tags with the actual directory path. This will be the title displayed on the page.
- Line 74: If this is a directory inside of another directory, remove the
style="display:none"placeholder in thedivtag.
- Line 75: If this is a directory inside of another directory, change the
up/levelplaceholder in thehref="..."tag with the actual link to the folder above.
- When you have customized the title, and added folder and file listings following the tutorials below, save the files and upload them to your web server.
- You're all set!
For a Folder¶
<tr>
<td data-value="Folder">
<a class="icon dir" href="link/to/folder">Folder</a>
</td>
<td class="detailsColumn" data-value="0"></td>
<td class="detailsColumn">MM/DD/YY, HH:MM:SS PM</td>
</tr>
- Replace the
"Folder"placeholder value (between thedata-value="..."tag) with the real name of the folder. - Replace the
"link/to/folder"link (between thehref="..."tag) with the actual link to the folder. - Replace the
Folderplaceholder name (between the<a>...</a>tag) with the real name of the folder. - Replace the
MM/DD/YY, HH:MM:SS PMplaceholder date with the date the folder was uploaded. - Add more of these rows as necessary.
For a File¶
<tr>
<td data-value="File">
<a class="icon file" draggable="true" href="link/to/file">File.txt</a>
</td>
<td class="detailsColumn">File</td>
<td class="detailsColumn">0.00 MB</td>
<td class="detailsColumn">MM/DD/YY, HH:MM:SS PM</td>
</tr>
- Replace the
"File"placeholder value (between thedata-value="..."tag) with the real name of the file. - Replace the
"link/to/file"link (between thehref="..."tag) with the actual link to the file. - Replace the
File.txtplaceholder name (between the<a>...</a>tag) with the real name and extension of the file. - Replace the
Fileplaceholder text with the actual file type. - Replace the
0.00 MBplaceholder size with the real size of the file. - Replace the
MM/DD/YY, HH:MM:SS PMplaceholder date with the date and time the file was uploaded. - Add more of these rows as necessary.
Change Icons¶
The icons that are used to represent the different file types can also be changed. To add your own icons, follow these steps:
- Find icons and save them as a
.pingfile. Ensure the icons are16x16pixels in size. - Move the icons to the
iconsfolder. - Rename the icons to match the current icons.
- You're all set!