Search…

X3 Photo Gallery Support Forums

Search…
 
User avatar
olivewhite
Experienced
Topic Author
Posts: 67
Joined: 29 Mar 2009, 14:30

Copy link to clipboard feature on social share

14 Mar 2018, 08:05

Hello
i wish we had a simple copy link item on social share tool, that would be great! 
Like this tool https://clipboardjs.com/
Thank in advance
Olive
Olive White Photographies
https://www.olivewhite.com
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Copy link to clipboard feature on social share

15 Mar 2018, 04:28

olivewhite wrote:i wish we had a simple copy link item on social share tool, that would be great! 
Like this tool https://clipboardjs.com/
Good idea.

We already use this script in the new forums to copy code ... 
Code
// Click "select all" button above to copy me!
 
User avatar
mjau-mjau
X3 Wizard
Posts: 13993
Joined: 30 Sep 2006, 03:37

Re: Copy link to clipboard feature on social share

26 May 2018, 16:10

This request came up in my TODO list recently, and I had a think about it. My first thought was that it doesn't seem productive. Most users will simply copy link from browser url, which is already quick and easy with [select + cmd-c]. I don't think it is reasonable to expect that visitors will look for a "copy link" feature in a website-specific toolbar when the visitor already has an existing behavior for this. All in all, it doesn't seem like a worthwhile X3 feature, but I decided to add it as a non-default option in release X3.25.0:

Toolbar clipboard button
Image

Simply add the following item to Settings > Toolbar > Items:
Code
{
  "id": "clipboard",
  "icon": "clipboard",
  "label": "Copy link"
}
You can change icon and label, but id must be "clipboard".
Image