Hi, I have two websites on the same topic and I am trying to use one image folder so that both websites can share the same images. I have used symlinks for one website (kesihatan) pointing to the image folder of the other website (health). What else do I need to do? I tried:
$wgUploadPath = "images"; $wgUploadDirectory = "images"; $wgAllowExternalImages = true;
but it is not working. I also tried
$wgUploadPath = "../health/images";
Any help deeply appreciated.
HT Ling
On 06/11/2011 03:46 AM, Ling Hwee Ting wrote:
Hi, I have two websites on the same topic and I am trying to use one image folder so that both websites can share the same images
That's not possible, each wiki stores information about its images in a database table. What is not in the table will not be found.
If you want to share images between two or more MediaWiki installations, here's what you need: http://www.mediawiki.org/wiki/Manual:$wgForeignFileRepos
-Kilian
Hi Kilian, thank you for your reply. I tried understanding Manual:$wgForeignFileRepos but without much success. Anyway, thank you very much. Maybe I should just treat them as two separate websites.
On Sat, Jun 11, 2011 at 12:03 AM, Kilian drehbuehne@texttheater.net wrote:
On 06/11/2011 03:46 AM, Ling Hwee Ting wrote:
Hi, I have two websites on the same topic and I am trying to use one image folder so that both websites can share the same images
That's not possible, each wiki stores information about its images in a database table. What is not in the table will not be found.
If you want to share images between two or more MediaWiki installations, here's what you need: http://www.mediawiki.org/wiki/Manual:$wgForeignFileRepos
-Kilian
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Could $wgUseSharedUploads (and associated settings) not be used to accomplish this? I've used this previously without issue (admittedly, only up to 1.15.x).
I realise it was "replaced" by $wgForeignFileRepos, but I have to agree that it is extremely difficult to understand how to use the setting from the documentation. Setting up a "wiki family" with shared images using UseSharedUploads was fairly straight-forward, but I can't even figure out with certainty if it is possible with ForeignFileRepos (maybe ForeignDBRepo? It's not clear), let alone how to actually accomplish it...
Regards, Daniel
On 15 June 2011 02:12, Ling Hwee Ting lihat88@gmail.com wrote:
Hi Kilian, thank you for your reply. I tried understanding Manual:$wgForeignFileRepos but without much success. Anyway, thank you very much. Maybe I should just treat them as two separate websites.
On Sat, Jun 11, 2011 at 12:03 AM, Kilian drehbuehne@texttheater.net wrote:
On 06/11/2011 03:46 AM, Ling Hwee Ting wrote:
Hi, I have two websites on the same topic and I am trying to use one image folder so that both websites can share the same images
That's not possible, each wiki stores information about its images in a database table. What is not in the table will not be found.
If you want to share images between two or more MediaWiki installations, here's what you need: http://www.mediawiki.org/wiki/Manual:$wgForeignFileRepos
-Kilian
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
$wgUseSharedUploads and friends are these days implemented by automatically copying the settings into $wgForeignFileRepos, so it shouldn't matter which you use in theory. The latter is more flexible if you need it.
-- brion On Jun 15, 2011 5:05 AM, "Daniel Bishop" aerosatar@gmail.com wrote:
Could $wgUseSharedUploads (and associated settings) not be used to accomplish this? I've used this previously without issue (admittedly, only up to 1.15.x).
I realise it was "replaced" by $wgForeignFileRepos, but I have to agree
that
it is extremely difficult to understand how to use the setting from the documentation. Setting up a "wiki family" with shared images using UseSharedUploads was fairly straight-forward, but I can't even figure out with certainty if it is possible with ForeignFileRepos (maybe
ForeignDBRepo?
It's not clear), let alone how to actually accomplish it...
Regards, Daniel
On 15 June 2011 02:12, Ling Hwee Ting lihat88@gmail.com wrote:
Hi Kilian, thank you for your reply. I tried understanding Manual:$wgForeignFileRepos but without much success. Anyway, thank you very much. Maybe I should just treat them as two separate websites.
On Sat, Jun 11, 2011 at 12:03 AM, Kilian drehbuehne@texttheater.net wrote:
On 06/11/2011 03:46 AM, Ling Hwee Ting wrote:
Hi, I have two websites on the same topic and I am trying to use one image folder so that both websites can share the same images
That's not possible, each wiki stores information about its images in a database table. What is not in the table will not be found.
If you want to share images between two or more MediaWiki
installations,
here's what you need: http://www.mediawiki.org/wiki/Manual:$wgForeignFileRepos
-Kilian
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
mediawiki-l@lists.wikimedia.org