Expand my Community achievements bar.

SOLVED

Operations on a page by means of program

Avatar

Level 9

Hi All,

I have tried the code[present in the attachment] in my eclipse, wherein I am able to add/remove a mixin[for example: cq:LiveSync] to the jcr: content of a page[OOT 5.6.1 instance].

Likewise, I would like to do operation mentioned below, on the page

a] Restore[same functionality as available in MSM]

This options is available in MSM control center, bue due to some limitations we will not be able to make use of it.

Can anyone please provide inputs/sample code to achieve this objective.

Any feedback will be really helpful.

1 Accepted Solution

Avatar

Correct answer by
Level 10

when you delete just an place holder ghost is created. To restore update the placeholder.

View solution in original post

4 Replies

Avatar

Correct answer by
Level 10

when you delete just an place holder ghost is created. To restore update the placeholder.

Avatar

Level 9

Hi Sham,

Thanks a lot for your reply.

I am sorry, but I could not get your point. Can you please explain this in detail.

I completely understand that nobody will provide ready made stuffs, but if you can provide sample code/steps, as to how this can be done. It would be really helpful.

Avatar

Level 9

Hi Sham,

Update :

In the above code[present in the attachment] adding a line

root.remove() removes the corresponding node/page. 

Avatar

Level 9

Hi Sham,

Any thoughts on my above queries/posts will be really helpful.