Simon Trewhella
Simon Trewhella

Reputation: 2484

Umbraco - use Image Cropper as parameter Type in Macro

I'm using Umbraco 7.4.3 and want to use an Image Cropper data type as a property editor for a Macro. The list of Types presented under the Parameters tab on the Macro does not contain my data type however.

How can I add my custom data type to that list?

Upvotes: 0

Views: 268

Answers (1)

Ashkan S
Ashkan S

Reputation: 11491

for most default plugins on Umbraco, you just need to add a line in their package.manifest file which is in app_plugin>"addons name">package.manifest

and then add this line

isParameterEditor: true,

so the file will be like this:

{
    propertyEditors: [
        {
        alias: "some name",
        name: "some name",
        **isParameterEditor: true,**
.....

you can also read this article if you need to create your own

Upvotes: 1

Related Questions