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
param ( | |
[Parameter(Mandatory=$true)] | |
[string]$TargetFolder | |
) | |
# Process all files recursively inside the target folder | |
Get-ChildItem -Path $TargetFolder -File -Recurse | ForEach-Object { | |
$inputFile = $_.FullName | |
$outputFile = [System.IO.Path]::ChangeExtension($inputFile, ".webp") |
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
var entityCollectionService = MerchelloContext.Current.Services.EntityCollectionService; | |
var filterGroup = entityCollectionService.CreateEntityCollectionWithKey(EntityType.EntityCollection, Guid.NewGuid(), "Extra"); | |
filterGroup.IsFilter = true; | |
entityCollectionService.Save(filterGroup); | |
var filterGroupValue = entityCollectionService.CreateEntityCollection(EntityType.EntityCollection, Guid.NewGuid(), "Featured"); | |
filterGroupValue.IsFilter = true; | |
filterGroup.ParentKey = filterGroup.Key; | |
entityCollectionService.Save(filterGroupValue); |
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
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="utf-8"> | |
<meta name="viewport" content="width=device-width"> | |
<title>JS Bin</title> | |
</head> | |
<body> | |
<script src="https://code.jquery.com/jquery.min.js"></script> | |
<link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/css/bootstrap.min.css" rel="stylesheet" type="text/css" /> |