yes Chad, thanks for the tip. I've installed a mediawiki locally yesterday to do some tests by my own at home. On the company I work the tech guys have agreed to configure ForeignRepo to do some tests, since I was demanding it to them from the day I heard this possibilty at usability meetings in Paris.
2009/12/20 Chad innocentkiller@gmail.com
On Sat, Dec 19, 2009 at 8:09 PM, nevio carlos de alarcão nevinhoalarcao@gmail.com wrote:
Hi, I am proud to announce that yesterday I had a meeting on the company techcology department and they have agreed to iniciate some tests with
the
script that allows mediawiki to use files from wikimedia commons. Meanwhile I would like to do some tests by my own on the wiki I installed locally at home. I have to write the code below to enable media files
from
wikimedia commons, Where do I have to write it? Is there a specific line
of
Localsettings?
$wgForeignFileRepos[] = array( 'class' => 'ForeignAPIRepo', 'name' => 'shared', 'apibase' => 'http://commons.wikimedia.org/w/api.php', 'fetchDescription' => true, // Optional 'descriptionCacheExpiry' => 43200, // 12 hours, optional 'apiThumbCacheExpiry' => 43200, // 12 hours, optional, but required for local thumb caching );
Thanks in advance, Nevio
-- {+}Nevinho Venha para o Movimento Colaborativo http://sextapoetica.com.br !! _______________________________________________ MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l
Anywhere in LocalSettings should do it. I'm assuming you're running a fairly recent installation of Mediawiki, as well?
-Chad
MediaWiki-l mailing list MediaWiki-l@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-l