Statistics Per Anchor | The number of files in an /ANCHOR subsection can be inserted by using %%ANCHOR_TOTAL_FILES%, and the size of all linked files with %%ANCHOR_TOTAL_SIZE% | |
Code Insertion By File Type | To customize links based on file type (e.g. *.mp3, this_file.txt), use a /FILE_MATCHES section. These sections can provide quite interesting results, for example this page. | |
Search Details | To add code showing details about the current search at the top of generated pages, use something along these lines:/START | |
Auto‑Generated Index Files | To automatically regenerate server index files upon access, use PHP. Configure dirhtml as follows:
Index.html can be redirected to the index.php file by overwriting it with this:
| |
Task Scheduler | As an alternative to using php to generate files, Windows Task Scheduler can regenerate html files periodically. To generate files using the scheduler, create a batch file (f7) that builds the desired file(s), then set up the scheduler to run the batch file periodically. | |
Network Drives | Dirhtml can index Windows accessable network drives. | |
Deleting Strings | Pressing Delete while a drop-down list is open deletes the focused string from the list. | |
Chopped Files | If a generated file gets cut off in mid-file, one or more indexed filenames probably has a non-ascii character that is being interpreted as an end of file marker. Use a UTF-8 or UTF-16LE character set if this occurs. | |
Save/Restore Settings | When a particular build works well, save the settings by pressing F9. The settings be can reopened later with F8. | |
Daunting Scripts | Some of the scripts distributed with dirhtml are complex. It's not necessary to learn every section to customize scripts. Editing a script (F11) and adding some code to the /START section can provide useful results. Most of the distributed scripts define table properties with CSS and can be used a starting point. | |
Tooltips | To see tooltips for dropdown lists, hover over the down arrows. | |
Page Jumping | Ctrl+PgUp and Ctrl+PgDn scroll through the tabs. | |
Server Pointing | To make links point to a particular server use a folder or file prefix. | |
Stupid Trick | Depending on the locale, your operating sytem may sort _ before other characters. Try renaming folders and files with _ as the first character (e.g. _saved.ini), so they will appear first in file managers when sorted by name. | |
Two columns example | To duplicate the two columns sample web page layour, select the div_recursive.txt script (F5), edit it (F11) and follow the instructions at the top of the file. | |
Including Per-Folder Files | When building a single recursive file, it is possible to include
a specific file in folder headers using a %%FILE...% variable. Non-recursive files can
also use %%FILE...% variables. For example, use a script including something like this: /ANCHOR ...with a description.txt file in the folder(s) of interest that includes html code, such as: Here is some text that <b>describes</b> the folder...
| |
Last Access In Windows 7 | In Windows 7, the file system may not automatically save "last access" data. To re-enable saving "last access" data, do this:
|