Copied to clipboard

Flag this post as spam?

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


  • Deeds 12 posts 112 karma points
    Feb 17, 2014 @ 10:44
    Deeds
    0

    Custom Dashboard (UkFest-AngularJS-Demo)

    Hi,

    I downloaded the UkFest-AngularJS-Demo code and put into my Umraco build (v7.0.3). It installs fine, I can see the drop down of people list but any attempt to save or add new or test the detox button etc I get a red error 404 e.g. People/PersonApi/GetByiD not found.

    This ia a great piece of code that helps those of us used to older versions of Umbraco and those of us who used to amend config files and refefence ASCX user controls for bespoke admin functions.

    However this 404 is doing my head in.

    Has anyone got any working example I can view or a fix to this 404?

    I can amend things like the trees.config file to move the "people" section into it's own custom dashboard tray, but the issue off adding new or detoxing etc doesn't work as if the "PersonApiController" isn't getting hit for anything other than an initial GetAll().

    I've tried tweaking the paths in person/resource.js to no avail.

    Thank you all.

    P :)

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Feb 17, 2014 @ 12:37
    Jeroen Breuer
    0

    Hello,

    Umbraco 7.0.2 had a breaking change: http://umbraco.com/follow-us/blog-archive/2014/1/17/heads-up,-breaking-change-coming-in-702-and-62.aspx

    You probably need to change to API call to backoffice/People/PersonApi/GetByiD

    Jeroen

  • Deeds 12 posts 112 karma points
    Feb 17, 2014 @ 13:06
    Deeds
    0

    Hi Jeroen,

    Thanks fior the quick response. I've looked at that article as well as the comments in this thread too - http://our.umbraco.org/forum/umbraco-7/developing-umbraco-7-packages/47827-404-For-PluginController

    Still getting error 404

    example of my resource.js...

    getById: function(id){

       return $http.get("backoffice/People/PersonApi/GetById?id=" + id);

    },

    Have tried replacing backoffice with umbraco as well as http but 404 every time?

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Feb 17, 2014 @ 13:21
    Jeroen Breuer
    101

    Hello,

    Umbraco has some very strong cache so it's probably fixed, but you're still seeing the old version. More info here: http://our.umbraco.org/contribute/releases/703

     

    "Google Chrome has notoriously aggressive caching, so if something doesn't seem to work well in the backoffice, make sure to clear cache and cookies thoroughly (for other browsers as well). 

    One way to nudge the cache in Chrome is to open the developer tools (F12) and go to the settings (the cog icon). There will be a checkbox that says "Disable cache (while DevTools is open)". Once this checkbox is on you can refresh the page and the cache should be invalidated. To force it even more, the "reload" button next to your address bar now has extra options when you right-click it. It should have "Normal reload", "Hard reload" and "Empty cache and hard reload" now. The last option is the most thorough and you might want to try that."

    Jeroen

     

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Feb 17, 2014 @ 15:58
    Jeroen Breuer
    1

    Also make sure to set compilation debug="true” in web.config.

    Jeroen

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Feb 19, 2014 @ 09:32
    Jeroen Breuer
    0

    Hello,

    Did you get it working after refreshing the cache?

    Jeroen

  • Deeds 12 posts 112 karma points
    Feb 19, 2014 @ 11:20
    Deeds
    0

    Hi Jeroen,

    Been out the office for a few days, but have now re-tested having cleared the cache and low and behold it's working!!!

    Many thanks my firend for your assistance in this.

    P :)

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Feb 19, 2014 @ 11:22
    Jeroen Breuer
    0

    Glad you got it fixed :). Please mark a post as the solution if it helped you.

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft