Project

General

Profile

Actions

Feature #2063

closed

dirlisting: allow HTML documents for HEADER/README

Added by penma over 15 years ago. Updated over 8 years ago.

Status:
Obsolete
Priority:
Normal
Category:
mod_dirlisting
Target version:
ASK QUESTIONS IN Forums:

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

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 1 (0 open1 closed)

Related to Feature #1458: Several listing enhancementsFixedjanActions
Actions #1

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).

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?
Actions #2

Updated by gstrauss over 8 years ago

  • Missing in 1.5.x set to Yes
Actions #3

Updated by gstrauss over 8 years ago

  • Status changed from New to Obsolete
Actions

Also available in: Atom