Clone existing page - Suggestion

Good morning,
I think it would be good when we start a page cloning another one, to cloning also all the custom code of the origin page (CSS/JS).

Many thanks and kindest regards.

Hey @marcor,

Thanks for reaching out!

There are a lot of ways to clone a page, you can follow the steps below:

Duplicating the page

  • You can duplicate any pages you want to clone. In the Cornerstone All documents you can find that option.

Saving the page as a template

  • to save the page as a template, you need to click the page then at the bottom right corner, you can see the option to save the page as a template.

Then create a page and locate the template section, you can see all the templates you’ve saved.

Then click the template to load on the page.

Hope that helps.

Yes, I know both ways.

Saving and using a template pass all the custom code (CSS/JS), but when you start cloning an existing page it doesn’t.

So it’s make sense that if you pass the custom code templating a page, you must pass the same code cloning an existing page…

Many thanks for your support

Hey Marcor,

Duplicating the page will also copy the page CSS/JS. I tried it on my local development and it is working well. There could some another culprit on your website why it is not copying the CSS/JS when you duplicate the page. It could a cache, you may try going to Cornerstone > Settings then clear the style cache.

Hope that helps.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.