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.
"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."
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 :)
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
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?
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
Also make sure to set compilation debug="true” in web.config.
Jeroen
Hello,
Did you get it working after refreshing the cache?
Jeroen
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 :)
Glad you got it fixed :). Please mark a post as the solution if it helped you.
Jeroen
is working on a reply...