Expand my Community achievements bar.

SOLVED

Language copy using the API ?

Avatar

Level 2

Hi all, 

I'm trying to find out what is the best way to create a language copy of a page in a programmatic way. After some research I found a couple of things: 

- The /bin/wcmcommand servlet is used to language copy within the interface. However I trying to find out which API is used internally? Just like the wcmcommand for creating pages, uses the PageManager, I'm trying to find the LanguageCopy equivalent (but I'm afraid it doesn't exist...)

- Nowadays there is a workflow called 'WCM Create Language Copy', however it doesn't seem to be used when you create a new language copy within the (Classic) interface...

- The LanguageCopyCommand seems to be gone since CQ5.1 (http://docs.adobe.com/docs/v5_1/cq-wcm-javadoc/com/day/cq/wcm/core/impl/commands/LanguageCopyCommand...), so that isn't an option anymore

Somebody who has an idea what the easiest way is for creating a language copies within a service/component ? 

Thanks in advance!
Best regards, 
Ruben

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Hi Ruben,

IIRC the LanguageCopy functionality internally uses the PageManager API, so there's nothing special about it.

kind regards,
Jörg

View solution in original post

1 Reply

Avatar

Correct answer by
Employee Advisor

Hi Ruben,

IIRC the LanguageCopy functionality internally uses the PageManager API, so there's nothing special about it.

kind regards,
Jörg