This file contains hidden or 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
| # modules | |
| Import-Module ActiveDirectory | |
| if((Get-PSSnapin 'Microsoft.SharePoint.PowerShell' -ErrorAction SilentlyContinue) -eq $null){Add-PSSnapin 'Microsoft.SharePoint.PowerShell'} | |
| # new service account | |
| $UserName = "SharePoint Service User Wiki" | |
| $UserUPN = "sa-spwiki@vbl.ch" | |
| $UserSam = "sa-spwiki" | |
| $UserPassword = "pass." |
This file contains hidden or 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
| <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" | |
| xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" | |
| version="1.0" exclude-result-prefixes="xsl msxsl ddwrt x d asp __designer SharePoint ddwrt2" | |
| xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" | |
| xmlns:asp="http://schemas.microsoft.com/ASPNET/20" | |
| xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" | |
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
| xmlns:msxsl="urn:schemas-microsoft-com:xslt" | |
| xmlns:SharePoint="Microsoft.SharePoint.WebControls" | |
| xmlns:ddwrt2="urn:frontpage:internal"> |
This file contains hidden or 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
| <xsl:stylesheet xmlns:x="http://www.w3.org/2001/XMLSchema" | |
| xmlns:d="http://schemas.microsoft.com/sharepoint/dsp" | |
| version="1.0" exclude-result-prefixes="xsl msxsl ddwrt x d asp __designer SharePoint ddwrt2" | |
| xmlns:ddwrt="http://schemas.microsoft.com/WebParts/v2/DataView/runtime" | |
| xmlns:asp="http://schemas.microsoft.com/ASPNET/20" | |
| xmlns:__designer="http://schemas.microsoft.com/WebParts/v2/DataView/designer" | |
| xmlns:xsl="http://www.w3.org/1999/XSL/Transform" | |
| xmlns:msxsl="urn:schemas-microsoft-com:xslt" | |
| xmlns:SharePoint="Microsoft.SharePoint.WebControls" | |
| xmlns:ddwrt2="urn:frontpage:internal"> |
This file contains hidden or 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
| <xsl:template name="FAQViewOverride" mode="RootTemplate" match="View[List/@TemplateType=11999]" ddwrt:dvt_mode="root"> | |
| <link rel="stylesheet" href="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.10/themes/redmond/jquery-ui.css" /> | |
| <script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery-1.8.0.js"></script> | |
| <script src="http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.22/jquery-ui.js"></script> | |
| <script> | |
| $(function() { | |
| $( "#accordionFAQ" ).accordion(); | |
| }); | |
| </script> | |
| <xsl:call-template name="View_Default_RootTemplate"/> |
This file contains hidden or 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
| (function () { | |
| loadCss('http://ajax.aspnetcdn.com/ajax/jquery.ui/1.8.10/themes/redmond/jquery-ui.css'); | |
| function OnAccordionViewPostRender(renderCtx) { | |
| jQuery(function() { | |
| jQuery( "#accordionFAQ" ).accordion(); | |
| }); | |
This file contains hidden or 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
| /_layouts/15/jquery.js|/_layouts/15/jquery-ui.js|/_layouts/15/yaspp/accordionviewtemplate.js |
This file contains hidden or 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
| function getListProperties(listTitle, OnSuccess,OnError) { | |
| var context = SP.ClientContext.get_current(); | |
| var web = context.get_web(); | |
| var list = web.get_lists().getByTitle(listTitle); | |
| context.load(web); | |
| context.load(list,'SchemaXml'); | |
| context.executeQueryAsync(function(){ |
This file contains hidden or 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
| function getJson(url) | |
| { | |
| return $.ajax({ | |
| url: url, | |
| type: "GET", | |
| contentType: "application/json;odata=verbose", | |
| headers: { | |
| "Accept": "application/json;odata=verbose" | |
| } | |
| }); |