Customize Copy to Exclude Certain Properties from Being Copied | Community
Skip to main content
Level 3
November 21, 2019
Solved

Customize Copy to Exclude Certain Properties from Being Copied

  • November 21, 2019
  • 1 reply
  • 924 views

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?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by arunpatidar

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.

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
November 21, 2019

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