Page MenuHomePhabricator

Allow adjusting of default gallery display options
Closed, ResolvedPublic

Description

Author: zach+bugs

Description:
I wrote a patch to includes/ImageGallery.php and includes/DefaultSettings.php to allow wiki administrators to change the way galleries are shown by default. Works with the <gallery> tag, images in categories, special pages for images, etc., anywhere that uses the ImageGallery class.


Version: 1.12.x
Severity: enhancement

Details

Reference
bz12797

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 10:05 PM
bzimport set Reference to bz12797.
bzimport added a subscriber: Unknown Object (MLST).

zach+bugs wrote:

patch to includes/ImageGallery.php and includes/DefaultSettings.php

attachment gallery-defaultsettings(2).diff ignored as obsolete

conrad.irwin wrote:

update patch and inline documentation

attachment patch59934 ignored as obsolete

conrad.irwin wrote:

patch to configure showbytes and filename truncate length too

This patch allows configuration of the last two variables I have needed to tweak.

Attached:

Reverted in r63261. Breaks gallery parser test, also I don't really like introducing 5 new globals for this...maybe 1 array with keys?

Reapply with r63672. Per suggestion of demon now with 1 array with keys and w/o breaking parsertests

Change 237330 had a related patch set uploaded (by Mdann52):
noindex userspace, per T014797 Change-Id: Iae2edc388f081da4618bee0697c67b15367e227f

https://gerrit.wikimedia.org/r/237330