Expand my Community achievements bar.

Learn about Edge Delivery Services in upcoming GEM session
SOLVED

Customize Copy to Exclude Certain Properties from Being Copied

Avatar

Level 3

Is there a way to customize the "Copy" feature for pages so that certain properties are not copied?

We store a unique id on our pages once they are published.  We'd like users to be able to use the Copy button to copy a page but exclude this unique id from being copied.

I'm familiar with how to exclude properties within Live Copy... is there something similar for the Copy feature?  Or, any other suggestions on how we might accomplish this?

1 Accepted Solution

Avatar

Correct answer by
Community Advisor

As far as I know, there is nothing to exclude when the copy page.

You can write an event listener to remove the property as soon as a page is created(copy).

You can check if the page is not published then remove the property on create event, if the page is already published skip.



Arun Patidar

View solution in original post

1 Reply

Avatar

Correct answer by
Community Advisor

As far as I know, there is nothing to exclude when the copy page.

You can write an event listener to remove the property as soon as a page is created(copy).

You can check if the page is not published then remove the property on create event, if the page is already published skip.



Arun Patidar