How does nop-editor know type is a picture when asp-for is int

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
3 years ago
I notice the nivoslider plugin uploads images by using the nop-editor with pictureid of type int:
<nop-editor asp-for="Picture1Id" />
I tried writing a plugin that does the same thing, but my control shows up as an int textbox instead of a picture upload control.
I see in nopeditortaghelper the nivoslider controls are somehow generated as image uploads and mine aren't and I can't pinpoint what I'm doing wrong.
var htmlOutput = _htmlHelper.Editor(For.Name, Template, new { htmlAttributes, postfix = Postfix });
3 years ago
For anyone who encounters the same problem, I didn't have this set correctly:
[UIHint("Picture")]
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.