Another v4.87 Beta

112 views
Skip to first unread message

dirhtml

unread,
Jun 20, 2012, 3:08:02 PM6/20/12
to dir...@googlegroups.com
Complete version notes:  http://dirhtml.home.comcast.net/~dirhtml/releases.html

It's now possible to replace specific filenames with arbitrary html code.

As an example, suppose you are building a file from "Pink Floyd - Dark Side Of The Moon," and want to replace two filenames with alternate text.

Add this (or something similar) to the script:
/FILE_MATCHES_INSIDE_A_SUPPRESSED
suppressed_filenames.txt

To "suppressed_filenames.txt" add something like this
/03 - Pink Floyd - Time.mp3
This is the link text for Time.mp3
/05 - Pink Floyd - Money.mp3
This is the link text for <b>Money</b>.mp3

To enable /FILE_MATCHES_INSIDE_A_SUPPRESSED, "Suppress Matching Link Text" on the miscellaneous page must be enabled.  Any file that doesn't have matching code will use the filename as the link text.

dirhtml

unread,
Jun 23, 2012, 10:58:06 AM6/23/12
to dir...@googlegroups.com
It turned out that the UI element on the "Miscellaneous" page wasn't needed for /FILE_MATCHES_INSIDE_A_
SUPPRESSED to work, and it has been removed from the program and all language xml files.

HellFire

unread,
Aug 24, 2012, 8:40:47 AM8/24/12
to dir...@googlegroups.com
A few things I've noticed (that were also the same in 4.86):
1. For recursive, one file per folder: The parent link is shown for the top folder.
2. The "Title" setting doesn't actually work, it's always set to %%FOLDER
3. Being able to insert a line after column headers would be nice (I like to have an <hr> after the folder & files headers).
4. File sizes can only be shown in kB or B. A short function would be able to turn them into friendly units (MB, GB) automatically
5. If folder path ends in a \, %%FOLDER will be blank. Any trailing \s should be stripped first (not just the last, as C:\Folder\\\ is a perfectly valid path)

dirhtml

unread,
Aug 24, 2012, 3:20:29 PM8/24/12
to dir...@googlegroups.com
On Friday, August 24, 2012 5:40:47 AM UTC-7, HellFire wrote:
A few things I've noticed (that were also the same in 4.86):
 
1. For recursive, one file per folder: The parent link is shown for the top folder.
     * Noted and fixed

2. The "Title" setting doesn't actually work, it's always set to %%FOLDER
    * I can't confirm this bug.  Note that in a framed build, the title is always from the "Files, Folders" page, and doesn't change.
 
3. Being able to insert a line after column headers would be nice (I like to have an <hr> after the folder & files headers).
    * You can do this with a script using CSS by redefining TH's, for example:
    /HEAD
    <style type="text/css">
    TABLE.file-table TH {padding-bottom: 1em;}
    </style>

    Note that TABLE is defined in CSS for most prebuilt dirhtml scripts, so you can just drop it into that section.  Also note that
    "file-table" is a table defined in the script, and may be named differently.  If the TABLE TH is already
    defined in the script, add "padding-bottom" to the existing definition.
   
    As an alternative to "padding-bottom," try "margin-bottom".
 
4. File sizes can only be shown in kB or B. A short function would be able to turn them into friendly units (MB, GB) automatically
    * This makes sense.  It means adding two new user-defined words (Mb, Gb). This hasn't been implemented yet.  It also probably means adding a "pick appropriate
    size notations" or something along those lines.
 
5. If folder path ends in a \, %%FOLDER will be blank. Any trailing \s should be stripped first (not just the last, as C:\Folder\\\ is a perfectly valid path)
    * Noted and fixed.
 
Beta download location:  http://dirhtml.home.comcast.net/~dirhtml/dirhtml_v4-87_BETA.zip

FYI, the file size is significantly larger than previous betas or v4.861.  It relates to using the v100 Toolset in VS 2010, which I don't really want, but can't seem to avoid on a new development system at the moment.

dirhtml

unread,
Sep 14, 2012, 1:07:51 PM9/14/12
to dir...@googlegroups.com
Showing file sizes by K, MG or GB has been implemented and the beta updated.  Default words have also been added for MB and GB.

At the moment, file sizes for MG or GB are shown with three decimal places (e.g. 45.237 MB).  I'm not sure this is the best way to display these numbers, but it seems reasonable.

dirhtml

unread,
Oct 2, 2012, 1:27:26 PM10/2/12
to dir...@googlegroups.com
A proposed final beta of v4.87 has been posted.  It will be released by the end of the month.

Regarding comment #2 from Hellfire, when dirhtml is first run (and forever after unless it's changed), the html title is "-- %%FOLDER --".  Try changing it to some random title.
Reply all
Reply to author
Forward
0 new messages