Page 1 of 1

List of references to media files - how?

Posted: Mon Apr 14, 2008 9:14 am
by JWalker
Hi,

Is there in S9Y a way to generate lists of references to the media files? Par example I want to delete a media file but without making the links to it in the static pages and entries broken. I would like to edit these and delete the references.

Re: List of references to media files - how?

Posted: Mon Apr 14, 2008 10:31 am
by garvinhicking
Hi!

To do that, some advanced work is required. You need to rewrite all of your links to miages to be replaced from /uploads/x.jpg to serendipity_admin_imageselctor.php?serendipity[image]=ID and enable the option to use "Allow dynamic image resizing" so that s9y's media DB can be used to wrap output images.

Once you emit images through the wrapper, s9y will track referrers automatically and reveal them to you in the property screen of a media object in the MDB.

You have to place links manually then or an event plugin would need to be created replacing image path links with image IDs. Such a plugin is on the todo-list for about 3 years now, so don't hold your breath. ;)

The bottom line is: Tough to do, you might better want to do a database fulltext search for the image with phpMyAdmin or a similar tool.

Best regards,
Garvin

Posted: Mon Apr 14, 2008 11:44 am
by JWalker
serendipity_admin_imageselctor.php?serendipity[image]=ID
In this above, what has to be put at the places of [image] if has to, and of ID. Where can I find image IDs?

Also,
serendipity_admin_imageselctor.php or
plugins/serendipity_event_imageselctorplus/serendipity_event_imageselctorplus.php ?

Posted: Mon Apr 14, 2008 12:40 pm
by garvinhicking
Hi!

"ID" would be replaced with the ID of the image as found in the serendipity_images database.

And I mean the serendipity_admin_image_Secltor.php, nothing with imageselectorplus.

Regards,
Garvin

Posted: Mon Apr 14, 2008 2:29 pm
by JWalker
Hi,

I understood. You mentioned the additions in svn rev 2205. And these have nothing to deal with the serendipity_event_imageselectorplus plugin. And if I understood it correctly, this plugin is not needed (at least after rev 2205).