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
<#@ template language="C#" debug="true" #> | |
<#@ import namespace="HedgehogDevelopment.SitecoreProject.VSIP.CodeGeneration.Models" #> | |
<#@ parameter name="Model" type="HedgehogDevelopment.SitecoreProject.VSIP.CodeGeneration.Models.SitecoreItem" #> | |
<# | |
if (Model is SitecoreTemplate) | |
{ | |
var template = Model as SitecoreTemplate; | |
#> | |
namespace <#= Model.Namespace #> |
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
Text Block | |
<# | |
// control block | |
for (int i = 0; i < length; i++) | |
{ | |
WriteLine(i); | |
} | |
#> |
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
public class HomeItem : CustomItem | |
{ | |
public HomeItem(Item innerItem) : base(innerItem) | |
{ | |
} | |
public int NewsItemLimit | |
{ | |
get { return Convert.ToInt32(this["News Item Limit"]); } | |
} |
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
using Sitecore; | |
using Sitecore.Services.Core.Configuration; | |
using Sitecore.Services.Core.Diagnostics; | |
using Sitecore.Services.Core.Security; | |
using Sitecore.Services.Infrastructure.Sitecore.Configuration; | |
using Sitecore.Services.Infrastructure.Sitecore.Diagnostics; | |
using Sitecore.Services.Infrastructure.Sitecore.Security; | |
using Sitecore.Services.Infrastructure.Web.Http.Security; | |
using System; | |
using System.Collections.Generic; |
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
Import-Module SitecoreInstallFramework | |
$Module = Get-Module SitecoreInstallFramework | |
Remove-Module $Module.Name | |
Remove-Item $Module.ModuleBase -Recurse -Force | |
Register-PSRepository -Name SitecoreGallery -SourceLocation https://sitecore.myget.org/F/sc-powershell/api/v2 | |
Set-PSRepository -Name SitecoreGallery -InstallationPolicy Trusted | |
Install-Module SitecoreInstallFramework | |
Get-Module -Name SitecoreInstallFramework -ListAvailable |