Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Dan 1288 posts 3921 karma points c-trib
    Nov 25, 2013 @ 12:34
    Dan
    0

    Umbraco Base in v6 MVC

    Hi,

    I need to hook up a 'rate this page' type feature on a current project. The front-end is complete, and is using jQuery to do a simple AJAX post, posting the article id and the rating the user has submitted.

    Now I'm wondering what the best way of implementing this server-side will be in v6.1.2 MVC? In the past I'd have just done this with Umbraco /Base. Nice and simple. However, I'm not sure if base still works or is the recommended approach? I'm thinking perhaps surface controllers or the Umbraco API controller are now the way to go, but they seem a whole lot more complex than base.

    Could anyone suggest the best way to do this?

    Thanks folks.

  • Ismail Mayat 4511 posts 10092 karma points MVP 2x admin c-trib
    Nov 25, 2013 @ 12:42
    Ismail Mayat
    100

    Dan,

    I would use umbraco web api controller, have recently done this on a project for ajax product search.

    Regards

    Ismail

  • Dan 1288 posts 3921 karma points c-trib
    Nov 25, 2013 @ 13:36
    Dan
    1

    Excellent, thanks Ismail. I have a working prototype already, with the aid of these useful links:

    1. http://our.umbraco.org/documentation/Reference/WebApi/
    2. http://www.nibble.be/?p=224
    3. http://umbraco.tv/videos/developer/fundamentals/api-controllers/adding-a-controller/

    Wasn't much more difficult than setting up Base, and I see it's probably a lot more powerful too.

    Cheers.

Please Sign in or register to post replies

Write your reply to:

Draft