Skip to content

Commit

Permalink
Changed AMS references to PnP
Browse files Browse the repository at this point in the history
  • Loading branch information
VesaJuvonen committed Nov 25, 2014
1 parent d3a3b82 commit c4100d2
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
SharePointMinVersion="15.0.0.0"
>
<Properties>
<Title>Office AMS Page Provisioning sample</Title>
<Title>Office 365 PnP Page Provisioning </Title>
<StartPage>~remoteAppUrl/Pages/Default.aspx?{StandardTokens}</StartPage>
</Properties>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
<br />
HTML text to add:
<br />
<asp:TextBox runat="server" ID="txtHtml" Rows="6" TextMode="MultiLine" Width="400px" Text="Hello <strong>Office AMS</strong>!"></asp:TextBox>
<asp:TextBox runat="server" ID="txtHtml" Rows="6" TextMode="MultiLine" Width="400px" Text="Hello <strong>Office 365 Dev PnP</strong>!"></asp:TextBox>
<br />
<br />
<asp:Button runat="server" ID="btnScenario1" Text="Run scenario 1" OnClick="btnScenario1_Click" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ protected void btnScenario2_Click(object sender, EventArgs e)
{
if (cc.Web.AddList(170, new Guid("192efa95-e50c-475e-87ab-361cede5dd7f"), "Links", false))
{
AddPromotedSiteLink(cc, cc.Web, "Links", "Office AMS on CodePlex", "https://officeams.codeplex.com");
AddPromotedSiteLink(cc, cc.Web, "Links", "Office 365 Dev PnP", "http://aka.ms/officedevpnp");
AddPromotedSiteLink(cc, cc.Web, "Links", "Bing", "http://www.bing.com");
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<httpRuntime targetFramework="4.5" />
</system.web>
<appSettings>
<add key="ClientId" value="0b633305-c0ec-4795-bbf0-8d271d8f1177" />
<add key="ClientId" value="b76afbd7-43eb-4a99-bbc7-e26354bf06af" />
<add key="ClientSecret" value="EUrlcSrPddq4+nm5LaEv/2pzU/MJomCbVVDE3il5iEo=" />
</appSettings>
<system.serviceModel>
Expand Down
4 changes: 2 additions & 2 deletions Scenarios/Provisioning.Pages/readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ string scenario1PageUrl = csomService.AddWikiPage("Site Pages", scenario1Page);
```

## Add HTML to a Wiki page ##
This is simply done by using the extension method AddHtmlToWikiPage from Office AMS Core:
This is simply done by using the extension method AddHtmlToWikiPage from Office 365 PnP Core:
```C#
cc.Web.AddHtmlToWikiPage("SitePages", txtHtml.Text, scenario1Page);
```
Expand Down Expand Up @@ -80,7 +80,7 @@ Below sample shows how to insert a two columns with header and footer layout int
```C#
cc.Web.AddLayoutToWikiPage("SitePages", WikiPageLayout.TwoColumnsHeaderFooter, scenario2Page);
```
Technically this is nothing more than inserting the correct HTML table structure as HTML content. The HTML table structure for the OOB layouts is included in the Office AMS Core library:
Technically this is nothing more than inserting the correct HTML table structure as HTML content. The HTML table structure for the OOB layouts is included in the Office 365 PnP Core library:
![](http://i.imgur.com/ezwBsPv.png)

## Inserting a web part ##
Expand Down

0 comments on commit c4100d2

Please sign in to comment.