This is probably a very basic question to many, but my background is as a SharePoint developer. I have done very little with wiki pages, or site pages in general.
I am creating a SharePoint 2010 site for a small team in our organization, and we have selected to use the Team Site template. I spent some time adding web parts, images and text to the home page (SitesPages/Home.aspx) as a means of visualizing what we could do with the site. This was all done in my development environment.
Now that we are happy with the development version of the page, is there some way to export it and add it to our Visual Studio project so that it can eventually be re-deployed to production? Is this even a good approach, or should we just expect to recreate the page manually in production?
My first thought was that we could export the page from SPD and deploy it via a module feature, but I have since learned that the EmbeddedFormField control in the wiki page makes that impossible.
I have also tried this approach: http://www.sharemuch.com/2012/02/20/how-to-automatically-provision-sharepoint-2010-wiki-pages-content/. The resulting page does not properly render the web parts (the web parts are not there, just some text). I also get "The current page has been customized from its template. Revert to template" message and can't make it go away, even if I click "Revert to template".
My module looks like this:
<Module Name="OneCallPages" Url="SitePages" SetupPath="FEATURES\MyProject.SharePoint_SiteAssetsFeature\MyProjectAssets\SitePages" List="119"> <File Path="Welcome.aspx" Url="Welcome.aspx" Type="GhostableInLibrary"> <Property Name="WikiField" Type="string" Value="..."/> </File> </Module>