Developer Forum »
Extending basic icons
10 posts

Hi

Webnodes is supporting a variety of icons in the file library and in the file selector on nodes. Is it possible to extend this list with custom icons for certain filetypes?

 

Regards Christoffer

181 posts

Hi!

All content classes have a method called GetIconUrl that you can override. Then you have full control over the icon urls that is returned. 

So you need to create a content class in Webnodes that inherits from ContentFile, override GetIconUrl and set the replace class dropdown of the class you are inheriting to ContentFile. If some of the file extensions you want to customize is not using ContentFile, but ImageFile, VideoFile etc, you need to create additional classes that inherit from them, where you also override GetIconUrl.

 

Vidar

10 posts

Exellent thx

 

Christoffer

1