Page selector in designer
Can I in any way reuse the page selector in designer mode of custom controls?
Hi Daniel,
You can use the selector as a property
[UrlProperty, WebEditor("Telerik.Cms.Web.UI.DhlUrlEditor, Telerik.Cms"), Bindable(true), WebSysDescription("HyperLink_NavigateUrl"), Category("Navigation"), DefaultValue("")] public string NavigateUrl get return this.navigateUrl; set this.navigateUrl = value; /// <summary>Gets or sets ID to a SitefinityPage</summary> /// <value>Sitefinity Page ID.</value> [TypeConverter("Telerik.Cms.Web.UI.GuidTypeConverter, Telerik.Cms"), WebEditor("Telerik.Cms.Web.UI.DhlIdEditor, Telerik.Cms"), Category("Navigation"), DefaultValue(typeof(Guid), "00000000-0000-0000-0000-000000000000")] public Guid PageId get return this.pageId; set this.pageId = value; I have a protection level issue with the WebSysDescription("HyperLink_NavigateUrl")
Hi Daniel,
Sorry the code is for Sitefinity 3.x. You cannot use it in Sitefinity 4.0. We have not implemented WebEditors that you can use directly as a part of a public property in "Advanced" section of a control. You have to create a control designer and call the webeditor from it. You can take a look at How to create a widget tutorial and this sample
Regards,
Ivan Dimitrov
the Telerik team