Operations on a page by means of program | Community
Skip to main content
New Participant
October 16, 2015
Solved

Operations on a page by means of program

  • October 16, 2015
  • 4 replies
  • 1212 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Sham_HC

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

4 replies

Sham_HC
Sham_HCAccepted solution
New Participant
October 16, 2015

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

askdctmAuthor
New Participant
October 16, 2015

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.

askdctmAuthor
New Participant
October 16, 2015

Hi Sham,

Update :

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

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

askdctmAuthor
New Participant
October 16, 2015

Hi Sham,

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