Podręcznik:$wgSharedUploadPath
Shared uploads: $wgSharedUploadPath | |
---|---|
Full path to the web server where shared uploads can be found. |
|
Wprowadzono w wersji: | 1.3.8 |
Usunięto w wersji: | nadal w użyciu |
Dozwolone wartości: | URL |
Domyślna wartość: | "http://commons.wikimedia.org/shared/images" (1.4+)"http://commons.mywiki.org/shared/images" (1.3) |
Inne ustawienia: Alfabetycznie | Według funkcji |
Szczegóły
Full path on the web server where shared uploads can be found.
If you operate multiple wikis, you can define a shared upload path using $wgSharedUploadPath. If $wgUseSharedUploads is set, the wiki will look in the shared repository if no file of the given name is found in the local repository (for [[Image:..]], [[Media:..]] links).
Thumbnails will also be looked for and generated in this directory.
Uploads to the wiki will NOT be put there - they will be put into $wgUploadDirectory .
Thumbnails of shared images
For resizing images in MediaWiki they need to have a row in image table of database containing dimensions and other information of image so you can't resize images haven't been uploaded by MediaWiki software and for importing them to database without using MediaWiki interface, you'll need to use some maintenance scripts. (maintenance/importImages.php )
If those images have been uploaded in another mediawiki, you can set $wgSharedUploadDBname to solve the problem.
Zobacz też
- Manual:$wgForeignFileRepos - a more flexible way of configuring shared upload repositories (and the only way, if you want to set up more than one shared upload source)
- $wgUseSharedUploads
- $wgSharedUploadDirectory
- $wgHashedSharedUploadDirectory
- $wgRepositoryBaseUrl