Closed der-On closed 11 months ago
Do you have a screenshot or screen recording of this in action?
Do you have a screenshot or screen recording of this in action?
I'll do some screenshots.
@LukeTowers here you see the new duplicate button and what happens when you click it:
I've also added a label to the duplicate button as the icon is not really self explanatory. I hope I've got all translations correct.
@der-On please revert the changes to translations for languages that you don't actually speak. Generally it's better if people see the fallback (English) rather than a google translated version which could be wildly incorrect.
@der-On please revert the changes to translations for languages that you don't actually speak. Generally it's better if people see the fallback (English) rather than a google translated version which could be wildly incorrect.
Absolutely right. Did so. I speak englisch, german, slovakian and a little french. The dutch translation was already corrected above.
Thanks @der-On! Looks good to me, will wait on @bennothommo for final review of this.
Last change that I would request is to remove the label "Duplicate" next to the icon for the duplicate button, and use a tooltip instead, like the "delete" button next to it. Duplicating a page is not a primary action, so I think it would be better to minimise it's UI footprint.
Hmm, I don't personally mind it having the label there. It's not like it's taking up too much space, and the icon by itself can be pretty hard to see / understand what it's there for. If anything having the label there improves the context clues that the delete button and the calendar icon have purpose.
Thoughts?
It's a subjective topic, but since you'll likely be using the duplicate button much less than the save or preview buttons, I don't think it's necessarily important enough to be prominent. Perhaps the icon can be changed to better reflect its use?
The icon is probably fine, can't think of a better one off the top of my head. Unless anyone has strong arguments in favour of keeping the label instead of turning it into a tooltip for display on hover over I'm fine with either approach.
The icon is probably fine, can't think of a better one off the top of my head. Unless anyone has strong arguments in favour of keeping the label instead of turning it into a tooltip for display on hover over I'm fine with either approach.
Completely fine with that. I will turn it into a tooltip. It's a secondary action and thus should use less space.
@bennothommo Is there anything holding this back?
@bennothommo will leave for you to merge for handling the release
This PR adds a "duplicate" button to each static page. With it a static page can be easily duplicated.
We use it to create "template" pages for site editors that then simply can be duplicated and edited. Especially with sites containing repeaters it is not possible to copy paste content from one page to another and having a starting point always helps site editors.