i-net-software / dokuwiki-plugin-multiorphan

Administrative GUI to find all sorts of orphaned or wanted pages and media. This works using AJAX instead of loading everything into one page.
https://www.dokuwiki.org/plugin:multiorphan
5 stars 5 forks source link

Plugin find **linked** media files #33

Open stefanobasta opened 6 years ago

stefanobasta commented 6 years ago

Due to the fact that there are several methods to enter medias in dokuwiki, it is dangerous to list all files which are not "officially linked" with "References for: nothing found". I guess that plugins like: "Upload" plugin, "imgpast" plugin or "Data" plugin will be added without an info in "Reference for:" I suppose it is the data plugin, because you can enter images via the img type.

gamma commented 6 years ago

I'm not sure what you are asking for. The Multiorphan can be extended for not yet supported syntax.

stefanobasta commented 6 years ago

I thought that this plugin will find all orphaned media files, so that I can delete them, because they are not any more used. To check it I verified some as "orphan" marked files and I found out that they are linked. If someone else use this plug-in for cleaning his database he could get some surprises. So it could be nice to add to the documentation how the algorithm find the orphan files. I guess that there is some "reference for" variable for each media file. Surely it could be nice that the plug-in could treat the special image case in the "Data" plugin https://www.dokuwiki.org/plugin:data

intervisionlord commented 4 years ago

Same issue for me. This plugin marked all files as orphaned. But they are linked to pages and present on it. All files were uploaded via default media manager. Considering that this plugin is destructive due to this bug!

rgleason commented 5 months ago

It would be very helpful, and even important if this plugin could for given namespaces:

  1. Find all instances in namespace pages where a media file is missing. These are called "Wanted media files"
  2. List all media files that are not used in any namespace. These are called "Orphaned and Unused Media". Some of these files are evidently "missing in action" or "orphaned" and will need to be "relinked", Other media files can be removed because they are old and "unused". I wonder how we can figure out the difference between those two types of "orphans"?
  3. List all media files that are used in a namespace. These are called "Linked".

Is this how the plugin actually works?

Is there some way of separating the files in 2 above, by matching up "Wanted" media files with "Orphaned" media files?