Feature Update: Tags for Assets

We just released a new feature to allow tags for assets. We had a very long discussion in the team and with our users whether to go with folders or tags. Some people argued that content editors are used to manage assets with folders, but our point is that folders are so limited. You can only have a single dimension for your assets.

Filtering assets by tags

The new system allows you to assign an unlimited amount of tags to each asset and keeps track of all tags that are used in your app. Future improvements will also allow you to merge, delete and rename assets and we also want to add auto completion to the user interface. Furthermore we introduced a system to create tags automatically for new assets.

We hope to get pull requests to enhance the system. For example you could calculate the dominant color for each image and add the color as a tag, e.g. red, blue green. As a developer you just have implement an interface:

public class MyTagGenerator : ITagGenerator<CreateAsset>
{
public void GenerateTags(CreateAsset source,
HashSet<string> tags)
{
var ext = source.File?.FileName?.FileType();
        if (!string.IsNullOrWhiteSpace(ext))
{
tags.Add($"type/{ext.ToLowerInvariant()}");
}
}
}

Do you like the new tag system or would you prefer folders instead? Let us know your opinion.