This repository has been archived by the owner on Aug 24, 2021. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Feature Change and update Core.EmbedJavaScript.HeaderFooter
- Loading branch information
Showing
25 changed files
with
997 additions
and
0 deletions.
There are no files selected for viewing
29 changes: 29 additions & 0 deletions
29
Samples/Core.EmbedJavaScript.HeaderFooter/Core.EmbedJavaScript.HeaderFooter.sln
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
|
||
Microsoft Visual Studio Solution File, Format Version 12.00 | ||
# Visual Studio 2013 | ||
VisualStudioVersion = 12.0.31101.0 | ||
MinimumVisualStudioVersion = 10.0.40219.1 | ||
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Core.EmbedJavaScript.HeaderFooter", "Core.EmbedJavaScript.HeaderFooter\Core.EmbedJavaScript.HeaderFooter.csproj", "{6ABFAFAA-0383-479D-9FFD-081A7B8535CF}" | ||
EndProject | ||
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Documents", "Documents", "{41697AAF-B595-44CA-BB02-A21F41FDDF50}" | ||
ProjectSection(SolutionItems) = preProject | ||
readme.md = readme.md | ||
EndProjectSection | ||
EndProject | ||
Global | ||
GlobalSection(SolutionConfigurationPlatforms) = preSolution | ||
Debug|Any CPU = Debug|Any CPU | ||
Release|Any CPU = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(ProjectConfigurationPlatforms) = postSolution | ||
{6ABFAFAA-0383-479D-9FFD-081A7B8535CF}.Debug|Any CPU.ActiveCfg = Debug|Any CPU | ||
{6ABFAFAA-0383-479D-9FFD-081A7B8535CF}.Debug|Any CPU.Build.0 = Debug|Any CPU | ||
{6ABFAFAA-0383-479D-9FFD-081A7B8535CF}.Debug|Any CPU.Deploy.0 = Debug|Any CPU | ||
{6ABFAFAA-0383-479D-9FFD-081A7B8535CF}.Release|Any CPU.ActiveCfg = Release|Any CPU | ||
{6ABFAFAA-0383-479D-9FFD-081A7B8535CF}.Release|Any CPU.Build.0 = Release|Any CPU | ||
{6ABFAFAA-0383-479D-9FFD-081A7B8535CF}.Release|Any CPU.Deploy.0 = Release|Any CPU | ||
EndGlobalSection | ||
GlobalSection(SolutionProperties) = preSolution | ||
HideSolutionNode = FALSE | ||
EndGlobalSection | ||
EndGlobal |
21 changes: 21 additions & 0 deletions
21
Samples/Core.EmbedJavaScript.HeaderFooter/Core.EmbedJavaScript.HeaderFooter/AppManifest.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<!--Created:cb85b80c-f585-40ff-8bfc-12ff4d0e34a9--> | ||
<App xmlns="http://schemas.microsoft.com/sharepoint/2012/app/manifest" | ||
Name="CoreEmbedJavaScriptHeaderFooter" | ||
ProductID="{4fc52bfb-77ce-4209-8c61-129c0e6801c4}" | ||
Version="1.0.0.0" | ||
SharePointMinVersion="16.0.0.0" | ||
> | ||
<Properties> | ||
<Title>Core.EmbedJavaScript.HeaderFooter</Title> | ||
<StartPage>~appWebUrl/Pages/Default.aspx?{StandardTokens}</StartPage> | ||
</Properties> | ||
|
||
<AppPrincipal> | ||
<Internal /> | ||
</AppPrincipal> | ||
<AppPermissionRequests> | ||
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection" Right="FullControl" /> | ||
<AppPermissionRequest Scope="http://sharepoint/content/sitecollection/web" Right="FullControl" /> | ||
</AppPermissionRequests> | ||
</App> |
35 changes: 35 additions & 0 deletions
35
Samples/Core.EmbedJavaScript.HeaderFooter/Core.EmbedJavaScript.HeaderFooter/Content/App.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/* Place custom styles below */ | ||
table { | ||
border-width: 1px; | ||
border-color: #000000; | ||
border-collapse: collapse; | ||
} | ||
|
||
table th { | ||
border-width: 1px; | ||
padding: 8px; | ||
border-style: solid; | ||
border-color: #000000; | ||
background-color: #dedede; | ||
} | ||
|
||
table td { | ||
border-width: 1px; | ||
padding: 8px; | ||
border-style: solid; | ||
border-color: #000000; | ||
} | ||
|
||
|
||
#ProvisionTable div { | ||
float: left; | ||
border-style: solid; | ||
border-color: #000000; | ||
border-width: 1px; | ||
padding: 10px; | ||
text-align: center; | ||
} | ||
|
||
.TBTitle .TBObject { | ||
width: 120px; | ||
} |
6 changes: 6 additions & 0 deletions
6
.../Core.EmbedJavaScript.HeaderFooter/Core.EmbedJavaScript.HeaderFooter/Content/Elements.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Elements xmlns="http://schemas.microsoft.com/sharepoint/"> | ||
<Module Name="Content"> | ||
<File Path="Content\App.css" Url="Content/App.css" ReplaceContent="TRUE" /> | ||
</Module> | ||
</Elements> |
7 changes: 7 additions & 0 deletions
7
...cript.HeaderFooter/Core.EmbedJavaScript.HeaderFooter/Content/SharePointProjectItem.spdata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.Module" DefaultFile="Elements.xml" SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel"> | ||
<Files> | ||
<ProjectItemFile Source="Elements.xml" Target="Content\" Type="ElementManifest" /> | ||
<ProjectItemFile Source="App.css" Target="Content\" Type="ElementFile" /> | ||
</Files> | ||
</ProjectItem> |
106 changes: 106 additions & 0 deletions
106
...t.HeaderFooter/Core.EmbedJavaScript.HeaderFooter/Core.EmbedJavaScript.HeaderFooter.csproj
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,106 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | ||
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" /> | ||
<PropertyGroup> | ||
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration> | ||
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform> | ||
<ProjectGuid>{6ABFAFAA-0383-479D-9FFD-081A7B8535CF}</ProjectGuid> | ||
<OutputType>Library</OutputType> | ||
<AppDesignerFolder>Properties</AppDesignerFolder> | ||
<RootNamespace>Core.EmbedJavaScript.HeaderFooter</RootNamespace> | ||
<AssemblyName>Core.EmbedJavaScript.HeaderFooter</AssemblyName> | ||
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion> | ||
<TargetOfficeVersion>16.0</TargetOfficeVersion> | ||
<FileAlignment>512</FileAlignment> | ||
<ProjectTypeGuids>{C1CDDADD-2546-481F-9697-4EA41081F2FC};{14822709-B5A1-4724-98CA-57A101D1B079};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}</ProjectTypeGuids> | ||
<MinimumVisualStudioVersion>12.0</MinimumVisualStudioVersion> | ||
<MinimumOfficeToolsVersion>12.1</MinimumOfficeToolsVersion> | ||
<IncludeAssemblyInPackage>False</IncludeAssemblyInPackage> | ||
<ProjectMode>SharePointApp</ProjectMode> | ||
<AppFeaturePartId>{18820891-9a1c-41e5-8d77-837b0e32c0a9}</AppFeaturePartId> | ||
<WspPartId>{e18446c1-b497-46be-b62a-26ea853d5d04}</WspPartId> | ||
<WorkflowPartId>{254c799d-f30f-4e5e-8096-356137769d57}</WorkflowPartId> | ||
<CspkgPartId>{280abd28-8149-4bf8-a9cb-51102c1da380}</CspkgPartId> | ||
<SqlPackagePartId>{87cd1838-924a-4b86-88e8-9c6bab066331}</SqlPackagePartId> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' "> | ||
<DebugSymbols>true</DebugSymbols> | ||
<DebugType>full</DebugType> | ||
<Optimize>false</Optimize> | ||
<OutputPath>bin\Debug\</OutputPath> | ||
<DefineConstants>DEBUG;TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<UseVSHostingProcess>false</UseVSHostingProcess> | ||
</PropertyGroup> | ||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' "> | ||
<DebugType>pdbonly</DebugType> | ||
<Optimize>true</Optimize> | ||
<OutputPath>bin\Release\</OutputPath> | ||
<DefineConstants>TRACE</DefineConstants> | ||
<ErrorReport>prompt</ErrorReport> | ||
<WarningLevel>4</WarningLevel> | ||
<UseVSHostingProcess>false</UseVSHostingProcess> | ||
</PropertyGroup> | ||
<ItemGroup> | ||
<None Include="packages.config" /> | ||
<None Include="Pages\SharePointProjectItem.spdata"> | ||
<SharePointProjectItemId>{4fc52bfb-77ce-4209-8c61-129c0e6801c4}</SharePointProjectItemId> | ||
</None> | ||
<Content Include="Pages\Elements.xml" /> | ||
<Content Include="Pages\Default.aspx" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Scripts\SharePointProjectItem.spdata"> | ||
<SharePointProjectItemId>{87cd1838-924a-4b86-88e8-9c6bab066331}</SharePointProjectItemId> | ||
</None> | ||
<Content Include="Scripts\Common.js" /> | ||
<Content Include="Scripts\Core.js" /> | ||
<Content Include="Scripts\Data.js" /> | ||
<Content Include="Scripts\Elements.xml" /> | ||
<Content Include="Scripts\App.js" /> | ||
<Content Include="Scripts\PnPGlobal.js" /> | ||
<Content Include="Scripts\_references.js" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Content\SharePointProjectItem.spdata"> | ||
<SharePointProjectItemId>{50b965af-23cd-4e2a-b1fc-5ae18ebdae31}</SharePointProjectItemId> | ||
</None> | ||
<Content Include="Content\Elements.xml" /> | ||
<Content Include="Content\App.css" /> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<Content Include="Images\AppIcon.png"> | ||
<OpcRelationship>manifest-icon</OpcRelationship> | ||
</Content> | ||
<Content Include="Images\Elements.xml" /> | ||
<None Include="Images\SharePointProjectItem.spdata"> | ||
<SharePointProjectItemId>{89d3cadc-4b4c-43bc-8235-2360d502af26}</SharePointProjectItemId> | ||
</None> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<None Include="Package\Package.package"> | ||
<PackageId>{ac6b7f67-3e27-4e9a-8b4b-a8308fd58ea6}</PackageId> | ||
</None> | ||
<None Include="Package\Package.Template.xml"> | ||
<DependentUpon>Package.package</DependentUpon> | ||
</None> | ||
<None Include="Features\Feature1\Feature1.feature"> | ||
<FeatureId>{92dd8978-2f31-4521-909e-7297f091d2fe}</FeatureId> | ||
</None> | ||
<None Include="Features\Feature1\Feature1.Template.xml"> | ||
<DependentUpon>Feature1.feature</DependentUpon> | ||
</None> | ||
</ItemGroup> | ||
<ItemGroup> | ||
<AppManifestFile Include="AppManifest.xml"> | ||
<SubType>Designer</SubType> | ||
</AppManifestFile> | ||
</ItemGroup> | ||
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" /> | ||
<PropertyGroup> | ||
<VisualStudioVersion Condition="'$(VisualStudioVersion)' == ''">10.0</VisualStudioVersion> | ||
<VSToolsPath Condition="'$(VSToolsPath)' == ''">$(MSBuildExtensionsPath32)\Microsoft\VisualStudio\v$(VisualStudioVersion)</VSToolsPath> | ||
</PropertyGroup> | ||
<Import Project="$(VSToolsPath)\SharePointTools\Microsoft.VisualStudio.SharePoint.targets" Condition="'$(VSToolsPath)' != ''" /> | ||
</Project> |
3 changes: 3 additions & 0 deletions
3
...pt.HeaderFooter/Core.EmbedJavaScript.HeaderFooter/Features/Feature1/Feature1.Template.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?xml version="1.0" encoding="utf-8" ?> | ||
<Feature xmlns="http://schemas.microsoft.com/sharepoint/"> | ||
</Feature> |
9 changes: 9 additions & 0 deletions
9
...aScript.HeaderFooter/Core.EmbedJavaScript.HeaderFooter/Features/Feature1/Feature1.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<feature xmlns:dm0="http://schemas.microsoft.com/VisualStudio/2008/DslTools/Core" dslVersion="1.0.0.0" Id="92dd8978-2f31-4521-909e-7297f091d2fe" description="SharePoint App Feature" featureId="92dd8978-2f31-4521-909e-7297f091d2fe" imageUrl="" solutionId="00000000-0000-0000-0000-000000000000" title="Core.EmbedJavaScript.HeaderFooter Feature1" version="" deploymentPath="$SharePoint.Project.FileNameWithoutExtension$_$SharePoint.Feature.FileNameWithoutExtension$" xmlns="http://schemas.microsoft.com/VisualStudio/2008/SharePointTools/FeatureModel"> | ||
<projectItems> | ||
<projectItemReference itemId="4fc52bfb-77ce-4209-8c61-129c0e6801c4" /> | ||
<projectItemReference itemId="87cd1838-924a-4b86-88e8-9c6bab066331" /> | ||
<projectItemReference itemId="50b965af-23cd-4e2a-b1fc-5ae18ebdae31" /> | ||
<projectItemReference itemId="89d3cadc-4b4c-43bc-8235-2360d502af26" /> | ||
</projectItems> | ||
</feature> |
Binary file added
BIN
+3.46 KB
...bedJavaScript.HeaderFooter/Core.EmbedJavaScript.HeaderFooter/Images/AppIcon.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
6 changes: 6 additions & 0 deletions
6
...s/Core.EmbedJavaScript.HeaderFooter/Core.EmbedJavaScript.HeaderFooter/Images/Elements.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Elements xmlns="http://schemas.microsoft.com/sharepoint/"> | ||
<Module Name="Images"> | ||
<File Path="Images\AppIcon.png" Url="Images/AppIcon.png" ReplaceContent="TRUE" /> | ||
</Module> | ||
</Elements> |
7 changes: 7 additions & 0 deletions
7
...Script.HeaderFooter/Core.EmbedJavaScript.HeaderFooter/Images/SharePointProjectItem.spdata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.Module" DefaultFile="Elements.xml" SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel"> | ||
<Files> | ||
<ProjectItemFile Source="Elements.xml" Target="Images\" Type="ElementManifest" /> | ||
<ProjectItemFile Source="AppIcon.png" Target="Images\" Type="ElementFile" /> | ||
</Files> | ||
</ProjectItem> |
3 changes: 3 additions & 0 deletions
3
...bedJavaScript.HeaderFooter/Core.EmbedJavaScript.HeaderFooter/Package/Package.Template.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Solution xmlns="http://schemas.microsoft.com/sharepoint/"> | ||
</Solution> |
11 changes: 11 additions & 0 deletions
11
...re.EmbedJavaScript.HeaderFooter/Core.EmbedJavaScript.HeaderFooter/Package/Package.package
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package dslVersion="1.0.0.0" | ||
Id="ac6b7f67-3e27-4e9a-8b4b-a8308fd58ea6" | ||
solutionId="ac6b7f67-3e27-4e9a-8b4b-a8308fd58ea6" | ||
xmlns="http://schemas.microsoft.com/VisualStudio/2008/SharePointTools/PackageModel" | ||
name="Core.EmbedJavaScript.HeaderFooter" | ||
sharePointProductVersion="16.0"> | ||
<features> | ||
<featureReference itemId="92dd8978-2f31-4521-909e-7297f091d2fe" /> | ||
</features> | ||
</package> |
96 changes: 96 additions & 0 deletions
96
...es/Core.EmbedJavaScript.HeaderFooter/Core.EmbedJavaScript.HeaderFooter/Pages/Default.aspx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,96 @@ | ||
<%-- The following 4 lines are ASP.NET directives needed when using SharePoint components --%> | ||
|
||
<%@ Page Inherits="Microsoft.SharePoint.WebPartPages.WebPartPage, Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" MasterPageFile="~masterurl/default.master" Language="C#" %> | ||
|
||
<%@ Register TagPrefix="Utilities" Namespace="Microsoft.SharePoint.Utilities" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> | ||
<%@ Register TagPrefix="WebPartPages" Namespace="Microsoft.SharePoint.WebPartPages" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> | ||
<%@ Register TagPrefix="SharePoint" Namespace="Microsoft.SharePoint.WebControls" Assembly="Microsoft.SharePoint, Version=15.0.0.0, Culture=neutral, PublicKeyToken=71e9bce111e9429c" %> | ||
|
||
<%-- The markup and script in the following Content element will be placed in the <head> of the page --%> | ||
<asp:Content ContentPlaceHolderID="PlaceHolderAdditionalPageHead" runat="server"> | ||
<script type="text/javascript" src="//ajax.aspnetcdn.com/ajax/jQuery/jquery-1.9.1.min.js"></script> | ||
<SharePoint:ScriptLink Name="sp.runtime.js" runat="server" LoadAfterUI="true" Localizable="false" /> | ||
<SharePoint:ScriptLink Name="sp.js" runat="server" LoadAfterUI="true" Localizable="false" /> | ||
<SharePoint:ScriptLink Name="SP.UI.Dialog.js" runat="server" LoadAfterUI="true" Localizable="false" /> | ||
<SharePoint:ScriptLink Name="SP.RequestExecutor.js" runat="server" LoadAfterUI="true" Localizable="false" /> | ||
<SharePoint:ScriptLink Name="PickerTreeDialog.js" runat="server" LoadAfterUI="true" Localizable="false" /> | ||
<meta name="WebPartPageExpansion" content="full" /> | ||
|
||
<!-- Add your CSS styles to the following file --> | ||
<link rel="Stylesheet" type="text/css" href="../Content/App.css" /> | ||
|
||
<!-- Add your JavaScript to the following file --> | ||
<script type="text/javascript" src="../Scripts/Core.js"></script> | ||
<script type="text/javascript" src="../Scripts/Common.js"></script> | ||
<script type="text/javascript" src="../Scripts/Data.js"></script> | ||
<script type="text/javascript" src="../Scripts/App.js"></script> | ||
</asp:Content> | ||
|
||
<%-- The markup in the following Content element will be placed in the TitleArea of the page --%> | ||
<asp:Content ContentPlaceHolderID="PlaceHolderPageTitleInTitleArea" runat="server"> | ||
PnP Header & Footer | ||
</asp:Content> | ||
|
||
<%-- The markup and script in the following Content element will be placed in the <body> of the page --%> | ||
<asp:Content ContentPlaceHolderID="PlaceHolderMain" runat="server"> | ||
|
||
<div id="Status"><b>Current Status:</b></div> | ||
<table> | ||
<tr> | ||
<th>Title</th> | ||
<th>Object</th> | ||
<th>Status</th> | ||
</tr> | ||
|
||
<tr> | ||
<td class="TBTitle">PropertyBag</td> | ||
<td class="TBObject"><b>PnPGlobalBreadcrumbRibbon</b></td> | ||
<td class="TVStatus"> | ||
<img id="TBPropertyBag" /> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td class="TBTitle">Javascript File</td> | ||
<td class="TBObject"><b>PnPGlobal.js</b><a id="FileFolder">Link</a></td> | ||
<td class="TVStatus"> | ||
<img id="TBFile" /> | ||
</td> | ||
</tr> | ||
<tr> | ||
<td class="TBTitle">SiteCollection</td> | ||
<td class="TBObject"><b>PnPGlobalBreadcrumbRibbon</b></td> | ||
<td class="TVStatus"> | ||
<img id="TBUserCustomAction" /> | ||
</td> | ||
</tr> | ||
</table> | ||
<br /> | ||
<div> | ||
<b>Provision Sequence:</b> | ||
<ol> | ||
<li>PropertyBag <b>PnPGlobalBreadcrumbRibbon</b> is created in RootWeb of the SiteCollection, this item will have the following JSON data:<br /> | ||
<b>{"Breadcrumb": [{"title": "Home","description": "Home","url":"https://github.com/OfficeDev"},{"title": "Product Category","description": "Product Category","url":"https://github.com/OfficeDev"},{"title": "Product","description": "Product","url":"https://github.com/OfficeDev"},{"title": "Example","description": "Example","url":"https://github.com/OfficeDev"}]}</b></li> | ||
<li>Copy of File <b>PnPGlobal.js</b> to <b>"_catalogs/masterpage/Display Template"</b>, this file supports the "ScriptLink" UserCustomAction</li> | ||
<li>SiteCollection ScriptLink with name <b>PnPGlobalBreadcrumbRibbon</b> to <b>PnPGlobal.js</b></li> | ||
</ol> | ||
<br /> | ||
<b>Breadcrumb base in JSON</b><br /> | ||
<textarea id="PropertyBagJSON" rows="5" cols="150">{"Breadcrumb": [{"title": "Home","description": "Home","url":"https://github.com/OfficeDev"},{"title": "Product Category","description": "Product Category","url":"https://github.com/OfficeDev"},{"title": "Product","description": "Product","url":"https://github.com/OfficeDev"},{"title": "Example","description": "Example","url":"https://github.com/OfficeDev"}]} | ||
</textarea> | ||
|
||
</div> | ||
<br /> | ||
<div id="ProvisionTable"> | ||
<div> | ||
<b>Add UserCustomAction Global Custom Breadcrumb and Ribbon in Site Collection</b> | ||
<br /> | ||
<input type="submit" class="ms-input" style="width: 140px;" value="Add Provision" id="BtAddProvision" onclick="PnPApp.AddProvisionOfUserCustomAction(); return false;" /> | ||
</div> | ||
<div> | ||
<b>Remove UserCustomAction Global Custom Breadcrumb and Ribbon in Site Collection</b> | ||
<br /> | ||
<input type="submit" class="ms-input" style="width: 140px;" value="Remove Provision" id="BtRemoveProvision" onclick="PnPApp.RemoveProvisionOfUserCustomAction(); return false;" /> | ||
</div> | ||
</div> | ||
|
||
</asp:Content> |
6 changes: 6 additions & 0 deletions
6
...es/Core.EmbedJavaScript.HeaderFooter/Core.EmbedJavaScript.HeaderFooter/Pages/Elements.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<Elements xmlns="http://schemas.microsoft.com/sharepoint/"> | ||
<Module Name="Pages"> | ||
<File Path="Pages\Default.aspx" Url="Pages/Default.aspx" ReplaceContent="TRUE" /> | ||
</Module> | ||
</Elements> |
7 changes: 7 additions & 0 deletions
7
...aScript.HeaderFooter/Core.EmbedJavaScript.HeaderFooter/Pages/SharePointProjectItem.spdata
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<ProjectItem Type="Microsoft.VisualStudio.SharePoint.Module" DefaultFile="Elements.xml" SupportedTrustLevels="All" SupportedDeploymentScopes="Web, Site" xmlns="http://schemas.microsoft.com/VisualStudio/2010/SharePointTools/SharePointProjectItemModel"> | ||
<Files> | ||
<ProjectItemFile Source="Elements.xml" Target="Pages\" Type="ElementManifest" /> | ||
<ProjectItemFile Source="Default.aspx" Target="Pages\" Type="ElementFile" /> | ||
</Files> | ||
</ProjectItem> |
Oops, something went wrong.