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
i am trying to create a custom Property Editor in Umbraco
Package.manifest
{ propertyEditors: [ { alias: "Notification Ribbon", name: "Notification Ribbon", editor: { view: "~/App_Plugins/NotificationRibbon/NotificationRibbon.html" } } ], javascript: [ '~/App_Plugins/NotificationRibbon/NotificationRibbon.controller.js' ] }
and in my controller
a
ngular.module("umbraco").controller("NotificationRibbon.Controller", function($scope) { $scope.opennotification = function() { if (!$scope.control) { $scope.control = {} } if (!$scope.model) { $scope.model = {} } $scope.overlay = { title: "Nottification ribbon", view: "/ultradata/Views/common/overlays/notificationribbon/notificationribbon.html", rteeditor: $scope.model.value.rteeditor, NotifyLinkClass: $scope.model.value.NotifyLinkClass, Location: $scope.model.value.Location, ButtonValue: $scope.model.value.editModel, show: true, submit: function(model) { $scope.overlay.show = false; $scope.overlay = null; $scope.model.value = {}; $scope.model.value.rteeditor = model.rteeditor.value; $scope.model.value.NotifyLinkClass = model.NotifyLinkClass; $scope.model.value.Location = model.Location; $scope.model.value.ButtonValue = model.ButtonValue; }, close: function(oldModel) { $scope.overlay.show = false; $scope.overlay = null; } } } });
the Property editor value storing like this for example in server
{ "id": 19151, "alias": "not", "value": { "rteeditor": "<p>fghfhfghfgh</p>" } }
when i tried to take the value and display the notification Text value in Razor code
<div class="gayaaa">@Umbraco.Field("not")</div>
the Result returning the Entire object in Screen
Hi Gayathri
The property editor stores all $scope.model.value object
So all fields that you added to $scope.model.value will be in database
/Alex
Did you find a solution?
Share with community, please
Alex
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
Custom Property Editor returns object Umbraco
i am trying to create a custom Property Editor in Umbraco
Package.manifest
and in my controller
a
the Property editor value storing like this for example in server
when i tried to take the value and display the notification Text value in Razor code
the Result returning the Entire object in Screen
Hi Gayathri
The property editor stores all $scope.model.value object
So all fields that you added to $scope.model.value will be in database
/Alex
Hi Gayathri
Did you find a solution?
Share with community, please
Alex
is working on a reply...