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

Mark threads with "[2.0]" for discussions about features in the longer-term future, "[1.6]" is for short-term. This is not the place for general discussions or plugin or template requests. Only features that are approved to happen by the core team should be listed here for better structuring.
Locked
User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

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

Post by garvinhicking » Sun Jan 02, 2011 10:46 pm

.. discussion here ...
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

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

Post by Timbalu » Mon Jan 03, 2011 3:08 pm

what is the goal for this?

Ian

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

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

Post by garvinhicking » Mon Jan 03, 2011 5:12 pm

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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

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

Post by Timbalu » Mon Jan 03, 2011 5:37 pm

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

User avatar
garvinhicking
Core Developer
Posts: 30020
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

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

Post by garvinhicking » Mon Jan 03, 2011 7:00 pm

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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/

User avatar
Lux
Regular
Posts: 761
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

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

Post by Lux » Thu Jan 06, 2011 10:16 am

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

mattsches
Regular
Posts: 440
Joined: Sat Nov 05, 2005 10:35 pm
Location: Wiesbaden, Germany
Contact:

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

Post by mattsches » Wed Feb 02, 2011 12:46 pm

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.

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

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

Post by Timbalu » Fri Apr 27, 2012 7:14 pm

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?
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

User avatar
Lux
Regular
Posts: 761
Joined: Fri Aug 12, 2005 4:36 pm
Location: Grüt, Zürich, Switzerland
Contact:

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

Post by Lux » Sat Apr 28, 2012 7:59 am

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

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

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

Post by Timbalu » Sat Apr 28, 2012 9:05 am

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.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

User avatar
Timbalu
Regular
Posts: 4598
Joined: Sun May 02, 2004 3:04 pm

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

Post by Timbalu » Wed May 30, 2012 8:00 am

N°3 added as 'multidelete items in media library', according to entries, comments, etc, to dev-Serendipity branch 2.0.
Regards,
Ian

Serendipity Styx Edition and additional_plugins @ https://ophian.github.io/ @ https://github.com/ophian

Locked