Skip to content
This repository has been archived by the owner on Jul 7, 2020. It is now read-only.

Commit

Permalink
Update Exercise1.md
Browse files Browse the repository at this point in the history
name changes
  • Loading branch information
Per Ploug committed Jun 3, 2015
1 parent cf5f529 commit 5c7f694
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Exercises/Exercise1.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@ This file is used to, among other things,register property editors. So we will a
propertyEditors:
[
{
name: "My editor",
alias: "my.editor",
name: "Glass editor",
alias: "my.glass.editor",
editor:{
view: "~/app_plugins/first/editor.html"
view: "~/app_plugins/glass/editor.html"
}
}
]
Expand All @@ -24,12 +24,12 @@ This file is used to, among other things,register property editors. So we will a
So we create a propertyEditors array, which we then add a single editor to. This editor has basic meta data like name, alias and most importantly, the path to the html that will show in the Ui when loaded.

##Editing the view
Let’s add that view, which is a .html file at `/app_plugins/first/editor.html`, then Open the editor.html file, and add nothing but:
Let’s add that view, which is a .html file at `/app_plugins/glass/editor.html`, then Open the editor.html file, and add nothing but:

```html
<input type="text" ng-model="model.value" />
```

Now, lets restart the application, by opening the `web.config` and make an edit like a linebreak or space to “touch it”. Every time we change the manifest, we must make the application restart to pickup the changes.
Every time the package.manifest file is saved, our application will restart and the property editor will have its configuration updated.

After restart, create a new data type named “**glass picker**”, and choose “**My editor**” from the list of available editors, add that data type to the “drink” document type as a property with the alias “**glass**” and open a page of that type.
After saving the manifest, create a new data type named “**glass picker**”, and choose “**Glass editor**” from the list of available editors, add that data type to the “drink” document type as a property with the alias “**glass**” and open a page of that type.

0 comments on commit 5c7f694

Please sign in to comment.