The steps are simple navigate to the Modules application. The quick tip simply boils down to if you want to add extra metadata to a Kentico Media Library file, go right ahead! The platform totally supports it, and will show a custom tab that allows you edit and save any custom fields very easily. Then the user interface automatically shows a new tab for managing a Media File’s custom fields. ![]() So if you add any additional fields to the Media File table like the screen shot below: It could endanger your upgrade path and ease of upgrade process. PRO TIP: Don’t go crazy customizing system level classes in Kentico. I was so close! The only thing I did wrong back when I set this up was to use the FileCustomData field, if I would have used the system to add an additional field into the Media File class that would have totally opened up the built in form to edit custom fields for Media Files. Which sounded pretty darn interesting to me.Īnd sure enough there was some built in code to the Kentico platform that turned a tab visible if the MediaFile class had been customized. In a quick scan of the code I started to see a mention of formMediaFileCustomFields. I fired up Visual Studio and navigated to the /CMSModules/MediaLibrary/Controls/MediaLibraryMediaFileEdit.ascx source file. Tonight I wanted to fix the solution and come up with a way to have an editable field in the Media File user interface that I could use for my purposes. I probably would not have passed any kind of BizStream code review if the guys back at the shop found out. Yes I know, it is a no good, very back, evil hack. Since I needed one piece of custom information I went with just using the field, and manually updated the database table when I needed to for the first 8 episodes. I noticed that there is a FileCustomData field. When I originally started this process I looked at the class of Media File in the Kentico Media Library module. And because it is not a standard field there is no direct place in the user interface to edit it. However, the Time field is not a standard field in the Media file class. I have re-purpose the standard Title and Description fields that a Kentico Media Library file natively comes with for the iTunes Name and Description fields. With a few minor configurations to the web parts I quickly was able to have an automatically populating RSS feed that works for iTunes. I then quickly used the Media Files Data Source web part to be the data source for the content of a RSS Feed web part. ![]() I use the standard Kentico Media Library feature to upload the mp3 files as we record them. The reason for this is that I power the podcast files and RSS feed right from my Kentico blog here at. ![]() If you notice the screen shot above shows how I am not great at remembering to update all fields, especially the Time field. The result looks like this.Īs you can see the iTunes application makes a nice display of the RSS feed, and takes the pieces of information such as Name, Time (duration), the Release Date, Description, etc. of course… and that is how iTunes shows the updated episodes. Apple will then spider the RSS feed, once it is approved by them. Once you host the files, you can create a specific RSS feed that has the metadata about each episode and where to download or stream the file from and publish that feed. To do so you need to host each mp3 file that contain the actual episode recording. When it comes to podcasts one of the best ways to distribute them is to setup the podcast in iTunes so that people can subscribe to cast. It’s actually something I enjoy quite a bit. We talk monthly (…well close to monthly…) on Kentico best practices, upcoming developer community events, and in general about the Kentico platform. Keep reading to see how this quick tip will allow you to add and manage metadata to Kentico Media Library files without dropping into any code.Īs you may or may not know, I host a podcast called Kentico Rocks alongside Bryan Soltis. Kentico never stops impressing me even after using it for 5+ years. The system was already built in a way that made my requirement dead simple to solve. ![]() In tonight’s blog post I am going to describe a real world scenario where I thought I would have to customize the system to pull off a feature that I needed for my own purposes at .Īs it turns out, I was wrong, no customization was required. One of the things that I love about Kentico is that the platform and the people who work on it are very smart. Brian McKeiver's Blog Kentico CMS Quick Tip - Enhance your Media Library File Metadata
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |