Page 1 of 1

[1.6] find unused media items [dev: garvin]

Posted: Sun Jan 02, 2011 9:46 pm
by garvinhicking
.. discussion here ...

Re: [1.6] find unused media items [dev: garvin]

Posted: Mon Jan 03, 2011 2:08 pm
by Timbalu
what is the goal for this?

Ian

Re: [1.6] find unused media items [dev: garvin]

Posted: Mon Jan 03, 2011 4:12 pm
by garvinhicking
Hi!

Lux or someone else requested a feature to find mediadatabase items that are not referred to in any post or staticpage. So we'd need to have a database lookup that checks for each item in the mediadatabase and if it's used. Not only by the path, but also by the media id. I'm not sure yet if this can really work out.

Regards,
Garvin

Re: [1.6] find unused media items [dev: garvin]

Posted: Mon Jan 03, 2011 4:37 pm
by Timbalu
garvinhicking wrote:requested a feature to find mediadatabase items that are not referred to in any post or staticpage.
and then do what?
Is it just to cleanup unused items, this idea isn't good at all, since you can hold ML items for future posts, or have the downloadmanagers ML option enabled.

Cheers,
Ian

Re: [1.6] find unused media items [dev: garvin]

Posted: Mon Jan 03, 2011 6:00 pm
by garvinhicking
Hi!
Timbalu wrote:
garvinhicking wrote:requested a feature to find mediadatabase items that are not referred to in any post or staticpage.
and then do what?
Is it just to cleanup unused items, this idea isn't good at all, since you can hold ML items for future posts, or have the downloadmanagers ML option enabled.
Yes, mostly to check and delete those media items. Personally I also wouldn't need it, but Lux and others might want it just to keep their installation footprint small. He also requested a manager that deals with other maintenance tasks like purging statistic tables, spamblock logs etc.

Regards,
Garvin

Re: [1.6] find unused media items [dev: garvin]

Posted: Thu Jan 06, 2011 9:16 am
by Lux
Timbalu wrote:Is it just to cleanup unused items, this idea isn't good at all, since you can hold ML items for future posts, or have the downloadmanagers ML option enabled.
You are not forced to use it ...

I know quite a lot of people, including myself, who downloaded a complete media gallery and copied the download to the serendipity upload directory (or a subdirectory). Depending on the size, you need to increase php limits in case you want to refresh the previews.

Cheers

Dirk

Re: [1.6] find unused media items [dev: garvin]

Posted: Wed Feb 02, 2011 11:46 am
by mattsches
Actually, it would really be nice to have functions that not only allow us to find "orphaned" media but also to parse entries for media/images that are actually used in an entry. Or do we have sth. like this already?

How could this be useful? I'm currently thinking of an image slider for featured entries at the top of the blog's frontpage. I'm aware that these sliders are highly controversial :wink: But anyway, there certainly are other good things for such functionality.

Re: [1.6] find unused media items [dev: garvin]

Posted: Fri Apr 27, 2012 7:14 pm
by Timbalu
Hi

I just wanted to clean up one of my Media library's and found it quite annoying to erase and find each item one by one. Do we not have something to check them all (by page) for deletion?

If this is missing, we could combine it with these development wishes.
Btw, would it be good to have this in core or by an additional plugin?

So we have wishes for:
  • find orphaned media items + (keep dependency if dlm is used)
  • find entry-linked media items + sortable (pass to frontend)
  • delete multiple media items in once
Is there even more?

Re: [1.6] find unused media items [dev: garvin]

Posted: Sat Apr 28, 2012 7:59 am
by Lux
Timbalu wrote:Is there even more?
You have to check for relative and absolute URLs.

Saying this another plugin checking external links for existance would be nice as well. :-)

Cheers

Dirk

Re: [1.6] find unused media items [dev: garvin]

Posted: Sat Apr 28, 2012 9:05 am
by Timbalu
Well, Yes, but my "question" indicated to be something related to the Media Library. Personally I think it would be good to add list N°1 and 3 into core and list N°2 as a plugin, which could also handle the external links question (and even other maintenance tasks).
We also have this [http://board.s9y.org/viewtopic.php?f=11&t=16799] too.

Re: [1.6] find unused media items [dev: garvin]

Posted: Wed May 30, 2012 8:00 am
by Timbalu
N°3 added as 'multidelete items in media library', according to entries, comments, etc, to dev-Serendipity branch 2.0.