Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Plugin find **linked** media files #33

Open
stefanobasta opened this issue Aug 18, 2018 · 4 comments
Open

Plugin find **linked** media files #33

stefanobasta opened this issue Aug 18, 2018 · 4 comments

Comments

@stefanobasta
Copy link

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
Copy link
Member

gamma commented Aug 24, 2018

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

@stefanobasta
Copy link
Author

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
Copy link

intervisionlord commented Jan 17, 2020

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
Copy link

rgleason commented Apr 12, 2024

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?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants