SitecorePowerShell / Console

Sitecore PowerShell Extensions
https://doc.sitecorepowershell.com/
Other
114 stars 70 forks source link

Build in a "Smart Copy"-function #1343

Closed KurtBildeSDU closed 4 months ago

KurtBildeSDU commented 5 months ago

This is not a bug but a wish.

We have code, examples, but it would be "smart" with a build in "smart copy"-function in spe, that takes care of both the item and the datasources of the renderings. See this example by Steve Vandenbush:

https://vandsh.dev/sitecore/2019/01/09/spe-single-item-smart-copy.html. The spe function should of course be without the dialogs :-)

AdamNaj commented 5 months ago

It sounds cool!

It also sounds like a bit much responsibility to add to Copy-Item that feels a little bit situational and potential support challenge in the making due to all the complex scenarios it can get into (what about references of the references 😄? What about SXA-like local references that may not exist in the Link database 😃?)

@KurtBildeSDU I'm sure we'd love to consider it if you decided to contribute and maintain it, but seeing how a solution already exists in the community I'd pass on developing one myself.

@michaellwest - you up for the challenge?

AdamNaj commented 4 months ago

For now, I'm closing it as I don't see Michael or myself doing it at the moment. Happy for you to reopen so we can accept a contribution with this functionality if you would be so kind.