Table of Contents
Compatible with DokuWiki
- 2022-07-31 "Igor" yes
- 2020-07-29 "Hogfather" yes
- 2018-04-22 "Greebo" yes
- 2017-02-19 "Frusterick Manners" yes
Similar to multiorphan, orphanmedia, orphanswanted
Based on the abandoned OrphanMedia Plugin
Search and install the plugin using the Extension Manager. Refer to Plugins on how to install plugins manually.
- Minor update to dokuwiki plugin description page (2023-02-15 07:48)
- Minor update to dokuwiki plugin description page (2023-02-15 07:38)
- Minor update to dokuwiki plugin description page (2023-02-15 07:36)
- Added dokuwiki plugin description page (2023-02-15 07:34)
- Added contributor notes to French and Russian translations (2023-02-15 07:09)
- Initial commit (2023-02-15 07:07)
- Initial commit (2023-02-15 07:04)
Use this plugin to find orphan and missing media files within your DokuWiki. There are 4 options provided to get the related information.
OrphanMedia show which medias are:
|all||will display the complete set of results of the other parameters togethers|
|summary|| Counter based information:
# of Page files
# of Media files
# of Media references
→ Filter settings
# of valid, qualified references
# of valid, relative references
# of Missing media files
# of Orphan media files
|valid||all valid media links referenced by full qualified path will be displayed|
|relative||all valid media links referenced by relative path will be displayed|
|missing||Missing Media, the media file does not exist, but there are link(s) to it elsewhere on the pages|
|orphan||Orphan Media, the media file exists, but not linked and wasting space only|
Detection & Limits
| standard, local DW media links |
|full qualified links also as relative links, with or without parameters, all detected|
| enclosed DW media links |
|specials excluded|| medialinks within <code>, <file>, <nowiki>, <php>, <html> and %% are ignored
further can be excluded by adding regexpr to plugin conf
| linked external media files |
| all detected; if valid, they will be viewed within relative section.
mediafile will be displayed as missing in the event a login will be neccesary to open it
(e.g. linked documents from CMS)
| gallery plugin references |
|not recognized, will be displayed as orphan if not otherwise linked|
|flashplayer||flashplayer may work for local files (not yet tested sufficiently)|
|unc path||not yet tested sufficiently|
|windows shares||not yet tested sufficiently|
Basic usage is to place one of the following five syntax lines into the page markup of a page with Admin/Superuser ACL:
====== Orphan Media detection ====== ~~NOCACHE~~ ~~ORPHANMEDIA:all~~ ~~ORPHANMEDIA:summary~~ ~~ORPHANMEDIA:valid~~ ~~ORPHANMEDIA:relative~~ ~~ORPHANMEDIA:missing~~ ~~ORPHANMEDIA:orphan~~
The summary will be displayed in any case.
You can combine outputs. For instance you want to see the summary, missing and orphan option only
the following syntax is valid (put the options together without delimiter):
Further you can specify a filter to limit the output to then specified file-extension according
following example (add file-extensions separated by “:”):
The summary counters will be affected accordingly beside the limited output.
It does also check for flashplayer-plugin links if they refer to local path.
Each valuable help is welcome. The code is not that complicated, just looping through and
displaying some filename and path info without any effect to your source.
The plugin was tested with DW 2022-07-31 “Igor” and older.
If you have multiple pictures named e.g. Image006.gif then the tool fails.
Please try to keep good style by authoring and give descriptive names to your media files.
Known Bugs and Issues
It could happen that not all media files will be detected or some feed links, etc. interpreted as such.
I tried to filter that out but due to that many syntax plugins it cannot catch all issues.
If you have a real problem please tell me the root cause of your problem at: OrphanMedia2 Issues
Sites using this Plugin
Feel free to add yours here:
Discussion and Bugs
Please use only the DokuWiki Forum for discussion. To report an issue please refer to: OrphanMedia2 Issues