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
{ | |
"$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", | |
"contentVersion": "1.0.0.0", | |
"parameters": { | |
"mysqlPassword": { | |
"type": "securestring", | |
"metadata": { | |
"description": "Root password password for the MySQL database." | |
} | |
}, |
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
New-AzureRmResourceGroupDeployment -ResourceGroupName <resourcegroupname> -TemplateFile .\AzureDockerMySQLWebSite.json -TemplateParameterFile .\AzureDockerMySQLWebSite.parameters.json |
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
<Field | |
ID="{6D1E6DA9-9114-43E8-994F-C6D34DCC13DF}" | |
Name="Documenttype" | |
DisplayName="Document type" | |
Type="TaxonomyFieldType" | |
Required="false" | |
ShowField="Term1033" | |
Group="Site Columns"> | |
<Customization> | |
<ArrayOfProperty> |
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
<Field Type="Note" | |
DisplayName="Document type_0" | |
StaticName="DocumenttypeHTField0" | |
Name="DocumenttypeTaxHTField0" | |
ID="{018D3722-B2F1-4F9E-A863-0F89AD81DCAC}" | |
ShowInViewForms="FALSE" | |
Required="FALSE" | |
Hidden="TRUE" | |
CanToggleHidden="TRUE" | |
RowOrdinal="0" /> |
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
<FieldRef ID="{f3b0adf9-c1a2-4b02-920d-943fba4b3611}" DisplayName="Taxonomy Catch All Column" Required="FALSE" Hidden="TRUE" Name="TaxCatchAll" Sealed="TRUE" Sortable="FALSE" /> | |
<FieldRef ID="{8f6b6dd8-9357-4019-8172-966fcd502ed2}" DisplayName="Taxonomy Catch All Column1" Required="FALSE" Hidden="TRUE" Name="TaxCatchAllLabel" ReadOnly="TRUE" Sealed="TRUE" Sortable="FALSE" /> |
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
SetTaxonomyField(site, new Guid("{6D1E6DA9-9114-43E8-994F-C6D34DCC13DF}"), "DMS", "Documenttypen", string.Empty); |
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
/// <summary> | |
/// Set the correct values for an Managed Metadata field | |
/// </summary> | |
/// <param name="site"><see cref="SPSite"/> object</param> | |
/// <param name="fieldId"><see cref="GUID"/> from the field to be updated</param> | |
/// <param name="Termstore">Name of the Term Store</param> | |
/// <param name="TermGroup">Name of the Term Group</param> | |
/// <param name="Termset">Name of the Term set</param> | |
private void SetTaxonomyField(SPSite site, Guid fieldId, string TermGroup, string Termset, string Term) | |
{ |
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
/// <summary> | |
/// Extension to search for a groupName | |
/// </summary> | |
public static class GroupExtension | |
{ | |
/// <summary> | |
/// Search for the Group by its name | |
/// </summary> | |
/// <param name="groupCollection">The group collection to search in</param> | |
/// <param name="name">The name to search for</param> |
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
/// <summary> | |
/// Extension to search for a term in a Termset | |
/// </summary> | |
public static class TermExtension | |
{ | |
/// <summary> | |
/// Search for the term by its path | |
/// </summary> | |
/// <param name="termset">The Termset where this path should be under</param> | |
/// <param name="path">The path to the term fron the Termset</param> |
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
<Field Type='Geolocation' DisplayName='Geolocation' Name='geolocation' /> |