Skip to content
Permalink
Browse files

Made some updates to the rules report.

  • Loading branch information...
michaellwest committed Aug 5, 2019
1 parent 90de2ec commit be1d145e38a62dcd2d6a1a0f850151e1bc7f150f
@@ -1,11 +1,11 @@
# Make sure to import `Sitecore.Cloud.Cmdlets.dll` and not `Sitecore.Cloud.Cmdlets.psm1`
Import-Module -Name "C:\Sitecore\sat\tools\Sitecore.Cloud.Cmdlets.dll"

#$path = "C:\Websites\dev.spe\Data\packages\Sitecore.PowerShell.Extensions-6.0.zip"
#$destination = "C:\Websites\dev.spe\Data\packages"
$path = "C:\Websites\dev.spe\Data\packages\Sitecore.PowerShell.Extensions-6.0-beta3.zip"
$destination = "C:\Websites\dev.spe\Data\packages"

$destination = "C:\Websites\sc827\Data\packages"
$path = "C:\Websites\sc827\Data\packages\Sitecore PowerShell Extensions-5.1.zip"
#$destination = "C:\Websites\sc827\Data\packages"
#$path = "C:\Websites\sc827\Data\packages\Sitecore PowerShell Extensions-5.1.zip"
ConvertTo-SCModuleWebDeployPackage -Path $path -Destination $destination -Verbose -Force
$path = "C:\Websites\sc827\Data\packages\Sitecore PowerShell Extensions - Authorable Reports-5.1.zip"
ConvertTo-SCModuleWebDeployPackage -Path $path -Destination $destination -Verbose -Force
#$path = "C:\Websites\sc827\Data\packages\Sitecore PowerShell Extensions - Authorable Reports-5.1.zip"
#ConvertTo-SCModuleWebDeployPackage -Path $path -Destination $destination -Verbose -Force
@@ -101,6 +101,7 @@ SharedFields:
}
$stdOptions = [ordered]@{
"ID" = "ID"
"Display Name" = "DisplayName"
"ItemPath" = "ItemPath"
"Name" = "Name"
@@ -132,6 +133,7 @@ SharedFields:
}
$defaultFields = $ruleItems[$ruleIndex].DefaultFields.Split("|")
$customFields = $defaultFields
$saveSettings = $false
if($showFieldSelector) {
@@ -154,6 +156,10 @@ SharedFields:
Close-Window
exit
}
} else {
if(!$defaultFields) {
$defaultFields = @("ID","Name","ItemPath")
}
}
$properties = [System.Collections.ArrayList]@()
@@ -178,6 +184,7 @@ SharedFields:
$imageField = [Sitecore.Data.Fields.ImageField]$typedField
if($imageField) {
$mediaID = $imageField.MediaID
if($mediaID -eq [guid]::Empty) { return "" }
if((Test-Path -Path "master:$($mediaID)")) {
$mediaItem = Get-Item -Path "master:" -ID $mediaID
return $mediaItem.ItemPath
@@ -14,7 +14,8 @@ SharedFields:
Value: |
<ruleset>
<rule
uid="{2EBF894C-82F8-4105-BEDF-6CDF7926F427}">
uid="{2EBF894C-82F8-4105-BEDF-6CDF7926F427}"
name="Items have a layout">
<conditions>
<condition
id="{A45DBBAE-F74F-4EFE-BBD5-24395E0AF945}"
@@ -24,7 +25,7 @@ SharedFields:
</ruleset>
- ID: "52c8f3b7-3110-41d1-abca-979ed691135c"
Hint: DefaultFields
Value: DisplayName|TemplateName
Value: DisplayName|TemplateName|ID
- ID: "743b8c3c-ba19-4e24-b324-c01dcd20f465"
Hint: Query
Value: "location:{0DE95AE4-41AB-4D01-9EB0-67441B7C2450};custom:_latestversion|1"
@@ -14,7 +14,8 @@ SharedFields:
Value: |
<ruleset>
<rule
uid="{9FED5125-45A0-413E-B0C1-88A6B7FE3026}">
uid="{9FED5125-45A0-413E-B0C1-88A6B7FE3026}"
name="Has more than enough versions">
<conditions>
<condition
id="{105D5494-5EB1-498D-83BB-6AC63A3AA69B}"
@@ -26,7 +27,7 @@ SharedFields:
</ruleset>
- ID: "52c8f3b7-3110-41d1-abca-979ed691135c"
Hint: DefaultFields
Value: DisplayName|TemplateName|ItemPath|Version
Value: DisplayName|TemplateName|ItemPath|Version|ID
- ID: "743b8c3c-ba19-4e24-b324-c01dcd20f465"
Hint: Query
Value: "location:{0DE95AE4-41AB-4D01-9EB0-67441B7C2450};custom:_latestversion|1"
@@ -14,7 +14,8 @@ SharedFields:
Value: |
<ruleset>
<rule
uid="{4DAE272F-26C1-44B0-AAC7-CE858608FE4A}">
uid="{4DAE272F-26C1-44B0-AAC7-CE858608FE4A}"
name="Locked items">
<conditions>
<condition
id="{84E910D4-B236-4570-9626-79FDB262E97A}"
@@ -24,7 +25,7 @@ SharedFields:
</ruleset>
- ID: "52c8f3b7-3110-41d1-abca-979ed691135c"
Hint: DefaultFields
Value: DisplayName|ItemPath|TemplateName|Version
Value: DisplayName|ItemPath|TemplateName|Version|ID
- ID: "743b8c3c-ba19-4e24-b324-c01dcd20f465"
Hint: Query
Value: "location:{0DE95AE4-41AB-4D01-9EB0-67441B7C2450};custom:_latestversion|1"
@@ -14,7 +14,8 @@ SharedFields:
Value: |
<ruleset>
<rule
uid="{91AD1EDC-9850-48C3-8D4D-B1AC4C9018D2}">
uid="{91AD1EDC-9850-48C3-8D4D-B1AC4C9018D2}"
name="Item is versioned or unversioned Jpeg">
<conditions>
<or
uid="6C0CF379E4024FD6A95E28EB388F27BF">
@@ -32,7 +33,7 @@ SharedFields:
</ruleset>
- ID: "52c8f3b7-3110-41d1-abca-979ed691135c"
Hint: DefaultFields
Value: DisplayName|TemplateName|Dimensions|Size
Value: DisplayName|TemplateName|Dimensions|Size|ID
- ID: "743b8c3c-ba19-4e24-b324-c01dcd20f465"
Hint: Query
Value: "location:{3D6658D8-A0BF-4E75-B3E2-D050FABCF4E1};+custom:_templatename|jpeg"
@@ -50,7 +50,7 @@ SharedFields:
</ruleset>
- ID: "52c8f3b7-3110-41d1-abca-979ed691135c"
Hint: DefaultFields
Value: DisplayName|ItemPath|TemplateName
Value: DisplayName|ItemPath|TemplateName|ID
- ID: "743b8c3c-ba19-4e24-b324-c01dcd20f465"
Hint: Query
Value: "+location:{3D6658D8-A0BF-4E75-B3E2-D050FABCF4E1};template:{f1828a2c-7e5d-4bbd-98ca-320474871548};template:{c97ba923-8009-4858-bdd5-d8be5fccecf7};template:{daf085e8-602e-43a6-8299-038ff171349f};template:{eb3fb96c-d56b-4ac9-97f8-f07b24bb9bf7}"
@@ -6,6 +6,10 @@ Path: /sitecore/system/Modules/PowerShell/Script Library/SPE
DB: master
Languages:
- Language: en
Fields:
- ID: "577f1689-7de4-4ad2-a15f-7fdc1759285f"
Hint: __Long description
Value: Location of all scripts included with SPE. Consider creating your own module folder to add custom scripts.
Versions:
- Version: 1
Fields:
@@ -13,7 +13,7 @@ SharedFields:
# Setup Chrome
Get-Item -Path "master:{FE669C6E-5CE5-4A7D-B4D3-5039B4C6AE75}" | Invoke-Script
$Version = "$((Get-Host).Version.Major).$((Get-Host).Version.Minor)-beta2"
$Version = "$((Get-Host).Version.Major).$((Get-Host).Version.Minor)-beta3"
$currentYear = [datetime]::Today.ToString("yyyy")
# Build Standard Package
@@ -72,6 +72,7 @@ SharedFields:
Get-UnicornConfiguration -Filter "Spe.Rules" | New-UnicornItemSource -Project $package
Get-UnicornConfiguration -Filter "Spe.Scripts" | New-UnicornItemSource -Project $package
Get-UnicornConfiguration -Filter "Spe.Roles" | New-UnicornItemSource -Project $package
Get-UnicornConfiguration -Filter "Spe.AuthorableReports" | New-UnicornItemSource -Project $package
# Files
$source = Get-Item "$AppPath\App_Config\Include\Spe\*.*" |
@@ -118,37 +119,6 @@ SharedFields:
Compress-Archive -Path $modulePath -DestinationPath $remotingPackageName > $null
}
# Build Standard Package
$package = New-Package "Sitecore PowerShell Extensions - Authorable Reports";
$package.Sources.Clear();
$package.Metadata.Author = "Adam Najmanowicz, Michael West";
$package.Metadata.Publisher = "Sitecore PowerShell Extensions Team";
$package.Metadata.Version = $Version;
$package.Metadata.Readme = @"
This module provides a reporting dashboard and additional reports
to complement those included with Sitecore PowerShell Extensions.
Documentation: https://doc.sitecorepowershell.com
Thank you for using Sitecore PowerShell Extensions.
Copyright (c) 2010-$($currentYear) Adam Najmanowicz
Copyright (c) 2013-$($currentYear) Michael West
Additonal Resources:
https://sitecorepowershell.com/
https://blog.najmanowicz.com/
https://michaellwest.blogspot.com/
"@
Get-UnicornConfiguration -Filter "Spe.AuthorableReports" | New-UnicornItemSource -Project $package
$packageName = "$($package.Name)-$Version" -replace " - ","-" -replace " ",".";
Export-Package -Project $package -Path "$packageName.zip" -Zip
Download-File "$SitecorePackageFolder\$packageName.zip"
Languages:
- Language: en
Versions:
@@ -6,6 +6,10 @@ Path: /sitecore/system/Modules/PowerShell/Script Library/SPE/Extensions
DB: master
Languages:
- Language: en
Fields:
- ID: "577f1689-7de4-4ad2-a15f-7fdc1759285f"
Hint: __Long description
Value: Extension modules created by the SPE team are added here.
Versions:
- Version: 1
Fields:
@@ -7,9 +7,12 @@ DB: master
Languages:
- Language: en
Fields:
- ID: "577f1689-7de4-4ad2-a15f-7fdc1759285f"
Hint: __Long description
Value: "Check out working examples to help you along with your exploration of SPE!"
- ID: "9541e67d-ce8c-4225-803d-33f7f29f09ef"
Hint: __Short description
Value: "Check out working examples to help you along your exploration of SPE!"
Value:
Versions:
- Version: 1
Fields:

0 comments on commit be1d145

Please sign in to comment.
You can’t perform that action at this time.