How to "hook in" a viewer for a new content type?

I want to have my viewer for a non-standard file extension pop up when the user clicks on such a file. How would I “hook in” that viewer?

Analogy: imagine there was no PDF support in Nextcloud, but I have implemented a Nextcloud app that knows how to render PDF. How do I get it to run when the user clicks on a PDF file?

Is that documented somewhere? Because I can’t find it…

@skjnldsv ^

It’s documented on the viewer repository readme :slight_smile:

1 Like

That is, I guess

Ah, thank you. Perhaps a link from the developer docs?