U4-8473 - Make selection query easy to copy to clipboard in the Query Builder window

Created by Douglas Robar 19 May 2016, 10:36:10 Updated by Sebastiaan Janssen 04 Sep 2017, 09:33:03

Start with a simple site (any starter kit would do, for instance... you just need some content pages)

Edit a template file in the back office and click the 'Open query builder' icon on the toolbar

As you build a query you'll see the a razor query selection at the bottom of the window, such as:


If you click the 'Insert' button on the dialog you get the selection variable and a complete @foreach() loop as well. That's fine in many cases but often times I just want the selection itself. This is currently extremely frustrating and slow to do with the horizontally scrolling panel. It's almost faster and easier to insert the entire code block and then delete all but the selection query.

One way to do this would be to make the selection clickable. When clicked it could copy the selection text onto the clipboard. Or perhaps when right-clicked? A tooltip or similar letting the user know how to copy just the selection code to the clipboard would make this feature more discoverable.

I'll leave the exact UI/UX to you gurus. What I'm reporting is the need to do make this much simpler.

cheers, doug.


Priority: Normal

Type: Bug

State: Open


Difficulty: Normal


Backwards Compatible: True

Fix Submitted:

Affected versions: 7.0.0, 7.1.0, 7.0.1, 7.0.2, 7.0.3, 7.0.4, 7.1.1, 7.2.0, 7.1.2, 7.1.3, 7.1.4, 7.1.5, 7.3.0, 7.1.6, 7.1.7, 7.1.8, 7.1.9, 7.2.1, 7.2.2, 7.2.3, 7.2.4, 7.2.5, 7.2.6, 7.2.7, 7.4.0, 7.2.8, 7.3.1, 7.5.0, 7.6.0, 7.3.2, 7.3.3, 7.3.4, 7.4.1, 7.3.5, 7.3.6, 7.3.7, 7.3.8, 7.4.2, 7.4.3

Due in version:


Story Points: