I am about to implement an autocomplete function on a textbox in edit mode. If this was episerver 6 i would have written a custom property where i would include a user control with all the functionality i needed.
But this is Episerver 7 and we're using MVC. What is the best approach to do this?
- A custom property? How would do build that with MVC?
- Editor descriptor? Can you include jQuery functionality into that or do you have to use this Dojo-thingy?
- Another option?
Check out my blog post that basically shows how to implement this:
Thanks. I will look into it.
I made your example work now after hours of cursing.... :)
Turned out that the objects you return from the rest service need to have a name and an id, not a name and value. Big thanks to Tomas Eld who wrote that in the comments.
For instance, what is
"epi/dependency", "epi/epi", "epi/shell/widget/_ValueRequiredMixin"
and how should i know that I need them? Is there any documentation about this?
Anyway, thanks again!
First of all, I updated the blog post to use Id. I guess that this might have changed in the 7.1 upgrade since we upgraded to Dojo 1.8 in that release.
Regarding documentation about how to work with expanding the UI, there exists some documentation, although we still lack a lot of information and samples, specifically for the EPi client API. The information that exists today is:
Information about the user interface in general, for instance an introduction to Dojo and further referenses to get started:
Client Side API-documentation for CMS:
Client Side API-documentation for the Framework parts:
Me and some other people have also written blog posts about this, for instance:
Regarding future improvements, we are currently working on improving the format and content for the client API documentation. I also hope that we will create a separate UI-project for CMS where we can put some common functionality to be able to implement common scenarios without having to write any client code at all. More info to come about this when we get closer to the next major release...
We actually use 7 and not 7.1, but we will soon upgrade. I guess some stuff might break then :)
Thanks for the links!