Page templates and urls for files

Hello everyone,

Is it possible to somehow create a page template for files, and thus have page urls for them.

So, not
website.com/project-a/image.png,
but
website.com/project-a/image
with an associated template that contains information from the file fields.

Use case is something not unlike the page type wikipedia has when you click through on an image (i.e. information about the image, source, credits, …)

Thanks a lot!

Sander

If you look at the URLs , the images have a specially constructed url wrapped round them…

"/wiki/File:some-image.jpg"

You could do something similar with the router and a virtual page that triggers on File: or something similar being in the URL. You can then feed the images meta file field data through to the virtual page as if it was page data.

Shouldn’t be too hard.

Just dont do it on direct hits to the image, as you break the normal usage of images i think.