Searching within a media library

Jon White asked on April 23, 2014 10:32

Hi,

Apologies if this has been asked but i was wondering if we could use kentico to create an internal image/media library on our intranet?

I know it may not be as fully-fledged as a bespoke solution but i hoped it might provide enough functionality to suffice.

I've had a quick play around and it looks ok, however i can't see any way to search within the media library. Someone had asked a similar question a while ago and was told functionality may be added in future.

Does anyone know if this is possible? Or alternatively is there a way to replicate the media library 'gallery' affect and use files in a similar way. It's just the ability to search within the media library is a key piece of functionality.

Thank you in advance Jon

Correct Answer

Brenden Kehren answered on April 23, 2014 14:07

I don't believe there is out of the box smart search abilities for Media Libraries in v7 or earlier. A few things you could do:

  • You can store your files in the content tree and get the search functionality out of it and have a gallery using repeaters and data lists to display the data. You're limited to the security you can implement with a media library as well. You can only set security from the overall library level and not granular like you can with the content tree.

  • Create a filter that does the filtering for you based on user input and display the media library content.

0 votesVote for this answer Unmark Correct answer

Recent Answers


Jon White answered on April 24, 2014 08:06

Thanks for your reply.

I have taken on board your suggestions and had a go at using repeaters and content tree storage, works quite well.

This may work ok, our current photo library is quite basic anyway but one element they have is the ability to resize the image on output/download .i.e. for presentation (500kb) for poster (2mb) / original size (5mb) etc...

Do you know if this is possible to replicate in some way?

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on April 24, 2014 12:46

What I'd do is create a new doc type vs. using the "File" doc type. It would be similar to the File doc type but you'd want to specify the maximum size the image can be when uploading. Then when displaying use the built-in methods to get an image. These methods (GetImage(object attachmentGuidColumn, object maxSideSize, object width, object height, object alt)) will resize the image for you so its smaller in physical size and file size. You can then create the thumbnail as a link to the full size image if you'd like.

0 votesVote for this answer Mark as a Correct answer

simon brasch answered on April 30, 2014 04:05

Hi

I am very interested in this area as well. We would like to expand the properties for the document type of multi media assets to include: • Copyright • Where the asset is being used? • Who is using it? • How long it is being used for? • How long has it been used for? • Asset type .gif, .jpg, .avi etc • Owner • Photographer • When the image was taken or asset created • Permissions relating to subjects

do you think this is possible?

Thanks

0 votesVote for this answer Mark as a Correct answer

Guido Paolano answered on August 17, 2017 20:31

I realize this is a few years old now, but is smart search for media libraries out of the box in v10? I can't seem to find it. Any point in the right direction is appreciated!

0 votesVote for this answer Mark as a Correct answer

Brenden Kehren answered on August 17, 2017 20:33

It is not Guido.

0 votesVote for this answer Mark as a Correct answer

Guido Paolano answered on August 17, 2017 20:36

Ok. Thanks!

0 votesVote for this answer Mark as a Correct answer

Yowaraj Chhetri answered on September 3, 2018 06:30

You can refer this article for performing search on media libraries file. https://devnet.kentico.com/articles/search-for-media-libraries

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.