Skip to content
This repository has been archived by the owner on Nov 23, 2021. It is now read-only.

Sites copy and move

Wiktor Szczepaniak edited this page Sep 5, 2016 · 2 revisions

Sites management

Copying and moving pages

Another operations using AEM Sites management page supported by SiteadminPage class are copying and moving pages.

Copying page

Copying functionality is provided by SiteadminPage.copyPage(String title, String destination) method.

We can check the example code below to enquire how to copy page to a location :

@Test
Public void shouldCopyPage() {
    siteadminPage.copyPage(“existing Page”, “/content/example/existingPath”);
}

Moving page

Moving functionality is provided by SiteadminPage.movePage(String title, String destination) method.

Example code regarding moving of page :

@Test
public void shouldMovePage() {
    siteadminPage.movePage(“existing Page”, “/content/example/existingPath”);
}

Back to Sites management

Getting started with Bobcat

  1. Getting started

AEM Related Features

  1. Authoring tutorial - Classic
  1. AEM Classic Authoring Advanced usage
  1. Authoring tutorial - Touch UI
Clone this wiki locally