Last modified: 2014-04-23 13:44:42 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T39678, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 37678 - Making widget-container configurable for different Instances
Making widget-container configurable for different Instances
Status: UNCONFIRMED
Product: MediaWiki extensions
Classification: Unclassified
Widgets (Other open bugs)
REL1_18-branch
All All
: Low enhancement (vote)
: ---
Assigned To: Nobody - You can work on this!
: patch, patch-need-review
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-18 09:55 UTC by Andreas Abele
Modified: 2014-04-23 13:44 UTC (History)
6 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments
Patchfile to wenhance Widgets (394 bytes, text/plain)
2012-06-18 09:55 UTC, Andreas Abele
Details

Description Andreas Abele 2012-06-18 09:55:18 UTC
Created attachment 10764 [details]
Patchfile to wenhance Widgets

This Patch allows you to set the storage-container for widgets ($compiled_dir) via LocalSettings.php or includes/DefaultSettings.php. Background is to use the Widgets-Extension for with multiple Instances of mediawiki by running the same Codebase. This is typically done within a "Wikifarm-Envronment".

Applying the patch like this:
cp wrenderer-patch.txt $IP/extensions/Widgets
cd $IP/extensions/Widgets
patch -R WidgetRenderer.php < wrenderer-patch.txt

After that the storage-container ($compile_dir) can be set via LocalSettings.php for each instance with an individual path by typing

$wgWidgetsCompileDir = "$IP/localExtensions/compiled_templates/";

or any other path where your Webserver has the right to write files.
Comment 1 Alex Monk 2012-06-18 15:56:21 UTC
This extension has a Git repository. I suggest that if you don't have a Gerrit account already you request one, commit this push and push it for review there.
Comment 2 Gregor Hagedorn 2012-06-22 13:37:51 UTC
I believe a more sane solution would be to place $wgWidgetsCompileDir inside the usual cache folder, like all other cached information (localization files, etc.).

I consider it an anomaly that an extension requires write access to part of the code branch.

This would work without any further specific changes to folder setup or rights both on single instance mediawiki installations and on wikifarms.
Comment 3 Andre Klapper 2013-02-13 12:43:35 UTC
Hi Andreas! Thanks for your patch!

You are welcome to use Developer access
  https://www.mediawiki.org/wiki/Developer_access
to submit this (including potential recommendations from comment 2) as a Git branch directly into Gerrit:
  https://www.mediawiki.org/wiki/Git/Tutorial

Putting your branch in Git makes it easier to review it quickly.
Thanks again! We appreciate your contribution.
Comment 4 Patrice Levesque 2014-04-23 13:44:42 UTC
Submitted to Gerrit:
https://gerrit.wikimedia.org/r/129170

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links