So, I'm trying to understand the difference between Drivers and Controllers. My need is this:
I need to create a module that queries datatables that are not mapped by Orchard/NHibernate. I understand a little about how to go about this.
I also understand I can create a separate MVC 3 app in VS and then drop it into Orchard as a module and have it display the results on the page.
However I need to go through the process of publishing the page from the Admin UI. They select the Product ID from a drop down, and publish the page. The query will pull other information needed based on the ProductID key and display the data using a ViewModel
I need this module to work on every page that is published. If I use controllers isn't a controller page specific? In other words, ( and correct me if I am wrong ), for every page I want to publish it needs it's own Controller? i.e. homecontroller, indexcontroller,
Whereas in Orchard it seems I only need 1 Driver and it displays the information no matter how many different pages of products I create. Again I may not know enough about how Controllers work.
Should I bypass the Driver altogether and just use an old fashioned Controller?
But I only want to write 1 Controller for every page that is published. Or do I need the Driver in order to publish from the Admin UI?
I hope this makes sense.