Skip to content

Commit b18b4e3

Browse files
committed
reverting 7713b19
1 parent 5c32d8e commit b18b4e3

File tree

70 files changed

+721
-732
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

70 files changed

+721
-732
lines changed

docs/general-development/create-a-map-view-for-the-geolocation-field-in-sharepoint.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ Follow these steps to create a map view for a SharePoint list programmatically.
150150
> **Note:**
151151
> The JSLink property is not supported on Survey or Events lists. A SharePoint calendar is an Events list.
152152
153-
cs
153+
```cs
154154

155155
class Program
156156
{
@@ -174,7 +174,7 @@ class Program
174174
context.ExecuteQuery();
175175
}
176176
}
177-
177+
```
178178

179179
8. Replace _<Site Url>_ and _<List Title>_ with valid values.
180180

docs/general-development/cross-site-publishing-in-sharepoint.md

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -80,104 +80,104 @@ SharePoint 2013 introduces classes that you can use to support cross-site publis
8080

8181

8282

83-
cs
83+
```cs
8484

8585
/// Retrieve available catalogs.
8686
public static List<CatalogConnectionSettings> GetPublishingCatalogs(SPSite site, int startRow, int numberOfRows, string filterText, out int totalNumberOfCatalogs)
87-
87+
```
8888

8989

9090

9191

9292

9393

94-
cs
94+
```cs
9595

9696
///Get catalog information that is saved for a list.
9797
public static bool GetCatalogConfiguration(SPList list, out CatalogShareSettings catalogSettings, out string selectedTaxonomyField)
98-
98+
```
9999

100100

101101

102102

103103

104104

105-
cs
105+
```cs
106106

107107
///Stop sharing a list or library as a publishing catalog for cross-publishing content reuse.
108108
public static void UnPublishCatalog(SPList list)
109-
109+
```
110110

111111
- Use the **CatalogCollectionManager** class to consume catalogs from search. Learn about the connection that a catalog has to search, and get information about it. Add or remove a catalog from the internal collection of catalogs, and queue an operation to queue up a connection that is configured to rewrite URLs when the **Update** method is called.
112112

113113

114114

115115

116116

117-
cs
117+
```cs
118118

119119
/// Add catalog or site source into the internal CatalogInfo collection, but the source is not persisted into the property bag.
120120
public void AddCatalogConnection(CatalogConnectionSettings catalogInfo)
121-
121+
```
122122

123123

124124

125125

126126

127127

128-
cs
128+
```cs
129129

130130
/// Queues an Add operation to add a connection configured to rewrite URLs. The connection is added to the store when the Update method is called.
131131
public void AddCatalogConnection(CatalogConnectionSettings catalogInfo,
132132
string[] orderedPropertiesForUrlRewrite,
133133
string webUrl,
134134
string catalogTaxonomyManagedProperty,
135135
bool isManualRule)
136-
136+
```
137137

138138

139139

140140

141141

142142

143-
cs
143+
```cs
144144

145145
/// Update existing catalog/site source in the internal CatalogInfo collection. Edits are not committed until the Update method is called.
146146
public void UpdateCatalogConnection(CatalogConnectionSettings catalogInfo)
147-
147+
```
148148

149149

150150

151151

152152

153153

154-
cs
154+
```cs
155155

156156
/// Remove a catalog or site source. Deletion is not committed until the Update method is called.
157157
public void DeleteCatalogConnection(string catalogPath)
158-
158+
```
159159

160160

161161

162162

163163

164164

165-
cs
165+
```cs
166166

167167
/// Determine whether a connection exists to this source from the site.
168168
public bool Contains(string catalogPath)
169-
169+
```
170170

171171

172172

173173

174174

175175

176-
cs
176+
```cs
177177

178178
/// Get the settings for a catalog connected to this site.
179179
public CatalogConnectionSettings GetCatalogConnectionSettings(string catalogPath)
180-
180+
```
181181

182182

183183
## Additional resources

docs/general-development/customizing-ranking-models-to-improve-relevance-in-sharepoint.md

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -95,14 +95,14 @@ Get-SPEnterpriseSearchRankingModel -SearchApplication $ssa -Owner $owner
9595

9696
2. Run the following sequence of Windows PowerShell cmdlets; *filename.xml* is the name of a file in which you want to save the ranking model.
9797

98-
powershell
98+
```powershell
9999
100100
$ssa = Get-SPEnterpriseSearchServiceApplication
101101
$owner = Get-SPenterpriseSearchOwner -Level ssa
102102
$defaultRankingModel = Get-SPEnterpriseSearchRankingModel -SearchApplication $ssa -Owner $owner | Where-Object { $_.IsDefault -eq $True }
103103
$defaultRankingModel.RankingModelXML > filename.xml
104104
105-
105+
```
106106

107107
If you install the SharePoint Server 2013 cumulative update of August 2013, you can use the following procedure to retrieve the search ranking model with two linear stages to use as a template for your custom ranking model.
108108

@@ -117,14 +117,14 @@ If you install the SharePoint Server 2013 cumulative update of August 2013, you
117117

118118
2. Run the following sequence of Windows PowerShell cmdlets; *filename.xml* is the name of a file in which you want to save the ranking model.
119119

120-
powershell
120+
```powershell
121121
122122
$ssa = Get-SPEnterpriseSearchServiceApplication
123123
$owner = Get-SPenterpriseSearchOwner -Level ssa
124124
$twoLinearStagesRankingModel = Get-SPEnterpriseSearchRankingModel -SearchApplication $ssa -Owner $owner -Identity 5E9EE87D-4A68-420A-9D58-8913BEEAA6F2
125125
$twoLinearStagesRankingModel.RankingModelXML > filename.xml
126126
127-
127+
```
128128

129129

130130
### To deploy a custom ranking model
@@ -135,28 +135,28 @@ $twoLinearStagesRankingModel.RankingModelXML > filename.xml
135135

136136
2. Run the following sequence of Windows PowerShell cmdlets using the GUID copied in step 1 for _<GUID>_.
137137

138-
powershell
138+
```powershell
139139
140140
$ssa = Get-SPEnterpriseSearchServiceApplication
141141
$owner = Get-SPenterpriseSearchOwner -Level ssa
142142
$rm = Get-SPEnterpriseSearchRankingModel -Identity <GUID> -SearchApplication $ssa -Owner $owner
143143
$rm.RankingModelXML > myrm.xml
144144
145-
145+
```
146146

147147
3. Edit the `myrm.xml` file in an XML editor. You must use new GUID values for the **id** attributes in _RankModel2Stage_ element and all _RankingModel2NN_ elements. To get a new GUID value you can for example use the following Windows PowerShell command: `[guid]::NewGuid()`
148148

149149

150150
4. Create a new ranking model with the [New-SPEnterpriseSearchRankingModel](http://technet.microsoft.com/en-us/library/ff607980.aspx) cmdlet by running the following commands.
151151

152-
powershell
152+
```powershell
153153
154154
$myRankingModel = Get-Content .\\myrm.xml
155155
$myRankingModel = [String]$myRankingModel
156156
$ssa = Get-SPEnterpriseSearchServiceApplication
157157
$owner = Get-SPenterpriseSearchOwner -Level ssa
158158
$newrm = New-SPEnterpriseSearchRankingModel -SearchApplication $ssa -Owner $owner -RankingModelXML $myRankingModel
159-
159+
```
160160

161161

162162
### Rank detail
@@ -215,7 +215,7 @@ To retrieve the rank detail, you need to be the administrator of the Search serv
215215

216216
2. Run the following sequence of Windows PowerShell cmdlets, and substitute _<query_text>_ and _<url>_ with actual values.
217217

218-
powershell
218+
```powershell
219219
220220
$app = Get-SPEnterpriseSearchServiceApplication
221221
$searchAppProxy = Get-spenterprisesearchserviceapplicationproxy | Where-Object { ($_.ServiceEndpointUri.PathAndQuery -like $app.Uri.PathAndQuery)}
@@ -227,7 +227,7 @@ $searchexecutor = new-Object Microsoft.Office.Server.Search.Query.SearchExecutor
227227
$resultTables = $searchexecutor.ExecuteQuery($request)
228228
$resultTables[([Microsoft.Office.Server.Search.Query.ResultType]::RelevantResults)].Table
229229
230-
230+
```
231231

232232

233233
### Understanding the rank score calculation via the ExplainRank page

docs/general-development/debugging-sharepoint-server-workflows.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -399,20 +399,20 @@ The last step is to configure SharePoint to trust the Fiddler certificate that w
399399

400400
3. Load the SharePoint 2013 Snap-In.
401401

402-
powershell
402+
```powershell
403403
404404
PS C:\\> Add-PSSnapIn Microsoft.SharePoint.PowerShell
405-
405+
```
406406

407407
4. Use the certificate utility to install the Fiddler certificate.
408408

409-
powershell
409+
```powershell
410410
PS C:\\> $fidderCertificatePath = [full path to exported FiddlerRoot.cer certificate file]
411411
PS C:\\> certutil.exe -addstore -enterprise -f -v root $fidderCertificatePath
412412
PS C:\\> $fiddlerCertificate = Get-PfxCertificate -FilePath $fidderCertificatePath
413413
PS C:\\> New-SPTrustedRootAuthority -Name "Fiddler" -Certificate $fiddlerCertificate
414414
415-
415+
```
416416

417417
5. Run IISRESET to make sure that SharePoint picks up the certificate trust change.
418418

@@ -451,11 +451,11 @@ This walkthrough has the following prerequisites:
451451

452452
2. Start Fiddler. While Fiddler will now intercept traffic from the current user, if there are any existing connections or processes running, Fiddler may miss those as it was not running when the connections were initially established. To force both Workflow Manager and SharePoint Server to recycle and have their traffic to each other get intercepted by Fiddler, recycle SharePoint by running an IISRESET and recycle Workflow Manager by stopping and starting the Windows service **Workflow Manager Backend**. This can be done with the following two commands at an administrative command prompt.
453453

454-
powershell
454+
```powershell
455455
PS C:\\> IISRESET
456456
PS C:\\> net stop WorkflowServiceBackend
457457
PS C:\\> net start WorkflowServiceBackend
458-
458+
```
459459

460460
3. Start the workflow.
461461

docs/general-development/discovery-in-excel-services-rest-api.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ For example, to access the chart in the workbook by using discovery, do the foll
129129

130130
3. Similarly, clicking **Chart 1** or **Chart 3** displays the chart with the corresponding name. Clicking **SampleChart** navigates to the actual chart URL. Following is the URL to the **SampleChart** image (as can be seen in the screen shot):
131131

132-
132+
```
133133
http://<ServerName>/_vti_bin/ExcelRest.aspx/Docs/Documents/sampleWorkbook.xlsx/model/Charts('SampleChart%20')?$format=image
134-
134+
```
135135

136136

137137
## Atom Feed

docs/general-development/external-events-and-alerts-in-sharepoint.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ The following describes the general flow of the subscription process:
249249

250250

251251

252-
XML
252+
```XML
253253
FunctionImport
254254

255255
<EntityType Name="EntitySubscribe">
@@ -273,7 +273,7 @@ XML
273273
Unicode="true" />
274274
</EntityType>
275275

276-
276+
```
277277

278278

279279
### Code example: BDC model with Subscribe

docs/general-development/fast-query-language-fql-syntax-reference.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,9 +89,9 @@ A property specification (the **In** Operator) may be applied to the following q
8989

9090
`title:"to be or not to be"`
9191
- An operator, for example, the **STRING** operator, as follows:
92-
92+
```
9393
title:string("to be or not to be")
94-
94+
```
9595
In this case the property specification applies to the complete operator expression.
9696
9797
### Examples

docs/general-development/how-to-access-external-data-with-rest-in-sharepoint.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -116,10 +116,10 @@ The next objective is to modify the default.aspx page that was created when you
116116

117117
2. Add the following **div** element to the page.
118118

119-
HTML
119+
```HTML
120120

121121
<div id="displayDiv"></div>
122-
122+
```
123123

124124
3. Save the page.
125125

@@ -137,7 +137,7 @@ Finally, you add code to the App.js file that executes when the page loads.
137137

138138
2. Paste the following code at the end of the file.
139139

140-
140+
```
141141
$(document).ready(function () {
142142
143143
// Namespace
@@ -191,7 +191,7 @@ function getCustomers() {
191191
var grid = new AppLevelECT.Grid($("#displayDiv"), _spPageContextInfo.webServerRelativeUrl);
192192
grid.init();
193193
}
194-
194+
```
195195

196196
Press F5 to deploy the app to SharePoint. Browse to the Default.aspx page in the app, and a list of customers appears on the page.
197197

docs/general-development/how-to-add-a-geolocation-column-to-a-list-programmatically-in-sharepoint.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ Follow these steps to add the Geolocation column to a list using the SharePoint
6969

7070
7. Add the following code to the **Main** method in the .cs file.
7171

72-
cs
72+
```cs
7373

7474
class Program
7575
{
@@ -88,7 +88,7 @@ class Program
8888
context.ExecuteQuery();
8989
}
9090
}
91-
91+
```
9292

9393
8. Replace <Site Url> and <List Title> with valid values.
9494

@@ -122,7 +122,7 @@ After the Geolocation field is added to a SharePoint list, the developer can add
122122

123123
- The following method adds a list item by passing the Geolocation value as an object.
124124

125-
cs
125+
```cs
126126

127127
private void AddListItem()
128128
{ // Replace site URL and List Title with Valid values.
@@ -143,15 +143,15 @@ private void AddListItem()
143143
context.ExecuteQuery();
144144
}
145145

146-
146+
```
147147

148148

149149
### Method B: Pass a raw value to the Geolocation field
150150

151151

152152
- The following method adds a list item to the SharePoint list by passing raw values to the Geolocation field.
153153

154-
cs
154+
```cs
155155

156156
private void AddListItem()
157157
{ // Replace site URL and List Title with Valid values.
@@ -169,7 +169,7 @@ private void AddListItem()
169169
context.ExecuteQuery();
170170
}
171171

172-
172+
```
173173

174174

175175
## Additional resources

0 commit comments

Comments
 (0)