Skip to content

Commit 2ffd041

Browse files
committed
Adding query builder button to View editor
1 parent dc4e6ee commit 2ffd041

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/Umbraco.Web.UI/umbraco/settings/views/EditView.aspx.cs

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,12 @@ protected override void OnInit(EventArgs e)
202202
ClientCallbackOpenMacroModel = "function(alias) {editViewEditor.openMacroModal(alias);}"
203203
};
204204
editorSource.Menu.InsertNewControl(macroSplitButton, 40);
205-
205+
206+
MenuIconI umbTemplateQueryBuilder = editorSource.Menu.NewIcon();
207+
umbTemplateQueryBuilder.ImageURL = UmbracoPath + "/images/editor/inshtml.gif";
208+
umbTemplateQueryBuilder.OnClickCommand = "editViewEditor.openQueryModal()";
209+
umbTemplateQueryBuilder.AltText = "Open query builder";
210+
206211
if (_template == null)
207212
{
208213
InitializeEditorForPartialView();

0 commit comments

Comments
 (0)