We are thinking about switching to Umbraco (version 5) to use for our websites. The problem for me is that I am not sure how to pull data from our own database. A lot of data from our current website is database driven. A small example of what I'm trying to achieve: I'm trying for example pull a list of players, and if you click one player you will see a page with some details of the player.
So far I created a SurfaceController and was able to display a list of players, then created a macro pointing to the correct function in the Controller. Followed by a Template and a Partial. But if I want to display the details of the player do I need to create another function within the Surface controller, then create a new macro etc. or is there an easier way of achieving this?
Pulling data from custom database
Hi,
We are thinking about switching to Umbraco (version 5) to use for our websites. The problem for me is that I am not sure how to pull data from our own database. A lot of data from our current website is database driven. A small example of what I'm trying to achieve: I'm trying for example pull a list of players, and if you click one player you will see a page with some details of the player.
So far I created a SurfaceController and was able to display a list of players, then created a macro pointing to the correct function in the Controller. Followed by a Template and a Partial. But if I want to display the details of the player do I need to create another function within the Surface controller, then create a new macro etc. or is there an easier way of achieving this?
Thanks in advance.
Michel
Sorry, posted in the wrong section, but the delete doesn't seems to work.
The post in the right section:
http://our.umbraco.org/forum/core/umbraco-5-general-discussion/30066-Pulling-data-from-custom-database
is working on a reply...