Project

General

Profile

Feature #2063

dirlisting: allow HTML documents for HEADER/README

Added by penma almost 10 years ago. Updated about 3 years ago.

Status:
Obsolete
Priority:
Normal
Assignee:
-
Category:
mod_dirlisting
Target version:
Start date:
2009-09-06
Due date:
% Done:

0%

Estimated time:
Missing in 1.5.x:
Yes

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.

patch01_dirlisting_option_noescape.patch (6.59 KB) patch01_dirlisting_option_noescape.patch Patch 1: Adds an option that disables escaping penma, 2009-09-06 11:08
patch02_dirlisting_automatically_use_html.patch (3.01 KB) patch02_dirlisting_automatically_use_html.patch Patch 2: Uses HTML files if they exist, else TXT penma, 2009-09-06 11:08

Related issues

Related to Feature #1458: Several listing enhancementsFixed

Actions

History

#1

Updated by stbuehler almost 10 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).

I also like the idea of using .html to disable the encoding, but we
  1. need an option to allow it (one option for header+footer should be enough) and
  2. we should think about which files get hidden: do we really want to hide README.txt if we showed README.html?
#2

Updated by gstrauss about 3 years ago

  • Missing in 1.5.x set to Yes
#3

Updated by gstrauss about 3 years ago

  • Status changed from New to Obsolete

Also available in: Atom