I'm working on a Visualforce page that (forgetting about page layouts for a moment) takes in a Record Id (from one of a variety of objects), does some querying for Content based on that Record Id, and returns a list of Content items. In terms of the actual query, it doesn't care what the Record Id is. So really I only need a single Controller to handle this query, pagination, sorting, etc.
Now back to the page layouts. I want to display these lists of Content on various page layouts, for different objects. Here the issue is that in order to display a VF page on a page layout, it needs to use the standard controller for that object. The downstream impact of that is that the VF page controllers now have to be extensions, which means I have to create an individual controller for each VF page. That doesn't scale very well.
Is this possible? Am I stuck creating individual VF pages with standard controller extension classes?