Don't miss out Virtual Happy Hour this Friday (April 26).

Try our conversational search powered by Generative AI!

Custom Widget Dojo Template String from Controller

Vote:
 

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
Vote:
 

Fixed with routeprefix on controller and route attribute on function

#195355
Jul 20, 2018 16:11
This topic was created over six months ago and has been resolved. If you have a similar question, please create a new topic and refer to this one.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.