Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hello,
I need help making my editor to be able to dynamically add more fields just like listtextstring or multiurlpicker.
A link to some sort of a guide would be very helpful. I just couldnt find any documentation about it at all.
What I aim to do is having 2 type of field for url. One is for iframe link and the other one will be for github repo.
That way user can add multiple url link and github repo link in one element.
This is currently what I have right now. for package.manifest
{ "propertyEditors": [ { "name": "DoubleTextBox", "alias": "DoubleTextBox", "editor": { "view": "~/App_Plugins/DoubleTextBox/DoubleTextBoxView.html", "valueType": "JSON" } } ], "javascript": [ "~/App_Plugins/DoubleTextBox/DoubleTextBoxController.js" ] }
my html
<div ng-controller="DoubleTextBoxController" class="guiInputStandardSize"> <input id="testone" type="text" ng-model="model.value.left"/> <input id="testtwo" type="text" ng-model="model.value.right" /> </div>
my js
angular.module("umbraco").controller("MyDataTypeController", function ($scope) { });
Hi Nez,
I know it's not exactly what you want, but I made a Key/Value editor a while ago, mostly based on the built-in Repeatable TextString editor - feel free to take a look at how it works:
https://github.com/vokseverk/Vokseverk.KeyValueEditor#keyvalue-editor-for-umbraco
Hope this helps, /Chriztian
oh wow thank you! This help me a lot on how to create my own editor :D
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Custom Property Editor: How to add more field dynamically (like listtextstring)?
Hello,
I need help making my editor to be able to dynamically add more fields just like listtextstring or multiurlpicker.
A link to some sort of a guide would be very helpful. I just couldnt find any documentation about it at all.
What I aim to do is having 2 type of field for url. One is for iframe link and the other one will be for github repo.
That way user can add multiple url link and github repo link in one element.
This is currently what I have right now. for package.manifest
my html
my js
Hi Nez,
I know it's not exactly what you want, but I made a Key/Value editor a while ago, mostly based on the built-in Repeatable TextString editor - feel free to take a look at how it works:
https://github.com/vokseverk/Vokseverk.KeyValueEditor#keyvalue-editor-for-umbraco
Hope this helps, /Chriztian
oh wow thank you! This help me a lot on how to create my own editor :D
is working on a reply...