Feature #2063
closeddirlisting: allow HTML documents for HEADER/README
Description
It is sometimes wanted that HTML documents be included above/below dirlistings. Currently this seems only possible with plain text files.
The attached patches offer different methods of obtaining this behaviour.
Patch 1 adds two new options that allow to turn off the escaping globally for the files. They're off by default.
Patch 2 searches for README.html/HEADER.html instead and displays those, if they're found, instead of README.txt/HEADER.txt. These files are then also hidden if hide-readme-files is enabled.
Patch 1 has the advantage of 100% perfect backward compatiblity, while Patch 2 is much more intuitive to the user by using the .html suffix on the files. I for myself prefer the second patch because of better usability.
Files
Updated by stbuehler over 15 years ago
We have something similar in 1.4 already (see #1458).
I guess we still could improve the options (like auto-layout only disables the lighty-generated content if the replacement files exist).
- need an option to allow it (one option for header+footer should be enough) and
- we should think about which files get hidden: do we really want to hide README.txt if we showed README.html?
Also available in: Atom