customize url properties popup

Vote:
 

hi

i wanted to add a field to the epi built in url property.

i want to add a button next to the media that will popup another modal ( some kind of alert)

any suggestion how to attack this issue ?

version 9++

#146487
Mar 16, 2016 14:22
Vote:
 

See https://tedgustaf.com/blog/2016/display-thumbnail-for-image-properties-in-episerver/ for how you can extend the image property.

For adding a button next to the media button, you can do something like:

define([
    "dojo/_base/declare",
    "dojo/dom-style",
    "dojo/aspect",

    "epi-cms/widget/ContentSelector"
],

function (
    declare,
    domStyle,
    aspect,

    ContentSelector
) {
    return declare([ContentSelector], { 

		startup: function () {
			var button = new Button({ label: "Click me" });
			button.startup();
			button.placeAt(this.inputContainer);
			button.on("click", function(event) {
				event.preventDefault();

			var dialog = new Dialog({
				title: 'title of dialog',
				content: '<p>Text</p>'
			});

			dialog.show();

			}
		}

    });
});
#150340
Jun 16, 2016 12:54
Vote:
 

Also check Marijas nice blog about extending dojo parts for link

http://www.mogul.com/om-mogul/blogg/extending-episerver-link-in-tinymce-to-support-anchors-on-page

#150342
Jun 16, 2016 13:07
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.