Customizing allowedtype message above contentarea in CMS



Currently i'm trying to change the generated message for allowed types on a list in the CMS. The allowed types only allow certain media types like .doc and .pdf to be added to the list. This is the code that i use:

             Name = "Foo",
             Description = "Bar",
             GroupName = SystemTabNames.Content,
             Order = 2)]
[AllowedTypes(new[] { typeof(AdobePdfFile), typeof(MsWordFile), typeof(MsExcelFile), typeof(ZipFile) })]
public virtual IList ContentReferencesCollection { get; set; }

The filetype classes shown in the code all inherit from EPiServer.Core.Mediadata.

When i go to the CMS the text above the contentarea shows the following message:

You can add these content types

Media, Media, Media, Media

Question: How can i change the words media to something like Word document or pdf?

I looked at this post, but did not get it working so i'm wondering if there are alternatives.

Thanks in advance!

Sep 05, 2018 13:22

Hi Jordi,

Did you ensure you specified a localization provider and path (as per here)?

If so -- an XML structure like this should work:

<?xml version="1.0" encoding="utf-8"?>
  <language name="English" id="en">


Oct 03, 2018 19:02
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.