Finally, you will take a look at how you can use your custom property editor as a parameter editor. **Parameters are on a macro and they are of a certain type. These types are the parameter editors. You can **reuse your property editor as a parameter editor by defining it in the manifest.
The isParameterEditor property on the property editor defaults to false. If you add it and set it to true, you will be able to use that as a parameter editor. In the Developer section, if you open an example macro, you will see that you can have parameters on a macro. Here, you provide an alias and a name. You also select a type.
These types are basically all available parameter editors. You will now inject your own parameter editors in here. Simply update your package manifest. On your location property editor, you will say that the isParameterEditor is true.
Save this file. Of course, you are making changes to your package manifest. You have to touch the web.config.
In the Back Office, you should now be able to choose Location as one of the available types and one of the available parameter editors.
You will now see if this actually functions. On your home page, you will now insert your example macro. You will see that you will get your map.
It is very simple to reuse property editors as parameter editors. Parameter editors don't have configurable settings, so you will have to provide the default values for the prevalues. Again, this is done by updating the package manifest and adding a defaultConfig property to your property editor.
Go back to your package manifest and in order to use your Char Limit property editor as a parameter editor, you will first need to provide the isParameterEditor to true. Then, provide the defaultConfig for the limit prevalue field.
Save your package manifest and touch the web.config again in order for the application to restart. Back in the Developer section, you will add another parameter called Intro of type Char Limit.
Save your macro and add it to your template. You will see that this intro has a limit of 150 set.
You are now reusing your property editors as parameter editors. You can see that it is very simple to do.
Start extending the backoffice with custom components, in this chapter you'll learn how to create your own property editors, using html, js and AngularJS.