I'm trying to work out how to properly republish a page.
We need to do this accross all pages on the site (corporate Intranet - approx 1900 migrated pages from 3.7 --> 4.1)
an issue we discovered is that the migrated pages show NOTHING in revision history until they are edited and published again (i raised this as an issue into PITS previously). we believe this is behind a few different issues we are trying to work through, for example they can't be unpublished in this state.
I have created new clean 4.1 site with 6 pages, in an effort to work out how to do this correcly.
I am trying as follows:
var pageNodes = App.WorkWith()
.Where(pN => pN.Page.Status == ContentLifecycleStatus.Live)
var myId = p.Page.Id;
var myDraft = m_PageManager.EditPage(myId,
result += p.Page.Title +
It appears to work but nothing appears in the revision history.
What am i missing?
Additionally, we need to programmaticallly update content blocks within pages (as a result of url rewriting to libraries not working correctly in the migration).
I've got this working directly but we really want to do this via a new published version, in case of any problems.
Can anyone supply an example for doing this?