Custom Widget Dojo Template String from Controller

nitinanand
Member since: 2017
 

Hi

I've created a custom gadget and it works well in an alloy project (Epi 11) but in my real project (epi 11), i am not getting templateString from my "LatestChangesController". 

Got inspired here https://tedgustaf.com/blog/2014/create-an-episerver-widget-for-edit-mode/


templateString: dojo.cache("/LatestChanges") // this line doesnt seems to return index.cshtml view as it does in alloy project. 


I get 404. Is there Routing i need or something? 

would appreciate help. 

Thanks 

Nitin

#195350
Jul 20, 2018 15:20
nitinanand
Member since: 2017
 

Fixed with routeprefix on controller and route attribute on function

#195355
Jul 20, 2018 16:11
This topic is created over 6 months ago and already resolved. If you have similar question please create new topic and refer to this one.