-
-
Notifications
You must be signed in to change notification settings - Fork 1
Customization
The Apache File Directory has been designed to be heavily customizable. More file and folder listings can be added, 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 as not to confuse users.
All of these instructions require a text editor to be installed.
-
Line 6: Update the
directoryplaceholder text between the<title>tags with the actual directory name. This will be the title of the webpage.
<title>Index of /directory</title>-
Line 12: If this is a directory inside of another directory, remove the comments (
<!--and-->).
<!--<tr><td valign="top"><img src="icons/back.gif" alt="[PARENTDIR]"></td><td><a href="../">Parent Directory</a></td><td> </td><td align="right"> </td><td> </td></tr>-->-
Line 12, Column 88: Change the
../with the actual link to the folder above, or leave it as../to use a relative path rather than an absolute one.
<tr><td valign="top"><img src="icons/back.gif" alt="[PARENTDIR]"></td><td><a href="../">Parent Directory</a></td><td> </td><td align="right"> </td><td> </td></tr>- 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!
<tr>
<td valign="top"><img src="icons/folder.gif" alt="[DIR]"></td>
<td><a href="folder/">folder</a></td>
<td align="right">YYYY-MM-DD HH:MM </td>
<td align="right"> - </td>
<td> </td>
</tr>- Replace the
folderplaceholder value (between the<a>...</a>tags) with the real name of the folder. - Replace the
folder/link (between thehref="..."tag) with the actual link to the folder. - Replace the
YYYY-MM-DD HH:MMplaceholder date with the date the folder was last modified. Leave the space behind the date! - Replace the
-placeholder with the the size of the folder. - Replace the
place holder with a description if you would like, or leave it as it is to just show a blank space. - Add more of these rows as necessary.
<tr>
<td valign="top"><img src="icons/hand.gif" alt="[LINK]"></td>
<td><a href="https://link-to-page.com">link</a></td>
<td align="right">YYYY-MM-DD HH:MM </td>
<td align="right">1.10K</td>
<td> </td>
</tr>- Replace the
linkplaceholder value (between the<a>...</a>tags) with the real name of the page. - Replace the
https://link-to-page.comlink (between thehref="..."tag) with the actual link to the page. - Replace the
YYYY-MM-DD HH:MMplaceholder date with the date the page was last modified. Leave the space behind the date! - Replace the
1.10Kplaceholder with the the size of the page. - Replace the
place holder with a description if you would like, or leave it how it is to just show a blank space. - Add more of these rows as necessary.
<tr>
<td valign="top"><img src="icons/text.gif" alt="[TXT]"></td>
<td><a href="text.txt">Textfile.txt</a></td>
<td align="right">YYYY-MM-DD HH:MM </td>
<td align="right">1.10K</td>
<td> </td>
</tr>- Replace the
Textfile.txtplaceholder value (between the<a>...</a>tags) with the real name and file extension of the file. - Replace the
text.txtlink (between thehref="..."tag) with the actual link to the file. - Replace the
YYYY-MM-DD HH:MMplaceholder date with the date the file was last modified. Leave the space behind the date! - Replace the
1.10Kplaceholder with the the size of the file. - Replace the
placeholder with a description if you would like, or leave it how it is to just show a blank space. - Add more of these rows as necessary.
<tr>
<td valign="top"><img src="icons/compressed.gif" alt="[COMPRESSED]"></td>
<td><a href="compressed.gz">Compressed File.gz</a></td>
<td align="right">YYYY-MM-DD HH:MM </td>
<td align="right">1.10K</td>
<td> </td>
</tr>- Replace the
Compressed File.gzplaceholder value (between the<a>...</a>tags) with the real name and file extension of the file. - Replace the
compressed.gzlink (between thehref="..."tag) with the actual link to the file. - Replace the
YYYY-MM-DD HH:MMplaceholder date with the date the file was last modified. Leave the space behind the date! - Replace the
1.10Kplaceholder with the the size of the file. - Replace the
place holder with a description if you would like, or leave it how it is to just show a blank space. - Add more of these rows as necessary.
<tr>
<td valign="top"><img src="icons/unknown.gif" alt="[FILE]"></td>
<td><a href="unknown">unknown</a></td>
<td align="right">YYYY-MM-DD HH:MM </td>
<td align="right">1.10K</td>
<td> </td>
</tr>- Replace the
unknownplaceholder value (between the<a>...</a>tags) with the real name and file extension of the file. - Replace the
unknownlink (between thehref="..."tag) with the actual link to the file. - Replace the
YYYY-MM-DD HH:MMplaceholder date with the date the file as last modified. Leave the space behind the date! - Replace the
1.10Kplaceholder with the the size of the file. - Replace the
place holder with a description if you would like, or leave it how it is to just show a blank space. - Add more of these rows as necessary.
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
.giffile. Ensure the icons are20x22pixels in size. - Move the icons to the
iconsfolder. - Rename the icons to match the current icons.
- You're all set!
Want to make a change? Open an issue!
Want a basic overview? Read the README.
Want to download the project? Head to the Releases page.
Want to start contributing? Open an Issue or a Pull Request.