Hi,
I've created the live copy and it is working fine for the existing content. However, If I create a page page programatically using JCR api then live copy is not copying that page to Spanish but if I create the same page manually in English then live copy is copying that page to Spanish.
Any idea why live copy is not able to copy the programatically created pages to spanish.
Thanks.
Solved! Go to Solution.
Views
Replies
Total Likes
noksc wrote...
Hi,
I've created the live copy and it is working fine for the existing content. However, If I create a page page programatically using JCR api then live copy is not copying that page to Spanish but if I create the same page manually in English then live copy is copying that page to Spanish.
Any idea why live copy is not able to copy the programatically created pages to spanish.
Thanks.
JCR API is not adding cq:lastModified property to the newly created node. So live copy is not able to understand its timestamp. I had to add this property and now live copy is working fine.
Views
Replies
Total Likes
When you create a page using an API, you need to make sure it has the same props as a page that is created manually, I am not even sure this is supported. I will check.
They will ask why are you trying to create a page for a LiveCopy using an API?
Views
Replies
Total Likes
Hi,
Can you share the lines in the code you are using to create the page?
Regards,
Opkar
Views
Replies
Total Likes
noksc wrote...
Hi,
I've created the live copy and it is working fine for the existing content. However, If I create a page page programatically using JCR api then live copy is not copying that page to Spanish but if I create the same page manually in English then live copy is copying that page to Spanish.
Any idea why live copy is not able to copy the programatically created pages to spanish.
Thanks.
JCR API is not adding cq:lastModified property to the newly created node. So live copy is not able to understand its timestamp. I had to add this property and now live copy is working fine.
Views
Replies
Total Likes
Were you using the PageManager API or creating Nodes?
Regards,
Opkar
Views
Replies
Total Likes
Opkar Gill wrote...
Were you using the PageManager API or creating Nodes?
Regards,
Opkar
I am using JCR API.
Views
Replies
Total Likes
Great pickup - i suspected it was a prop issue as I suggested. Thank you for posting this!
Views
Replies
Total Likes
smacdonald2008 wrote...
Great pickup - i suspected it was a prop issue as I suggested. Thank you for posting this!
Thanks Scott.
Views
Replies
Total Likes
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies