Skip to content

Commit c2ad025

Browse files
Added handler for preview.png of themes
1 parent 0d7a9fd commit c2ad025

3 files changed

Lines changed: 9 additions & 7 deletions

File tree

src/Libraries/SmartStore.Data/Setup/SeedData/InvariantSeedData.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -8947,11 +8947,11 @@ public IList<NewsItem> NewsItems()
89478947
{
89488948
AllowComments = true,
89498949
Language = defaultLanguage,
8950-
Title = "smartstore.net new release!",
8951-
Short = "smartstore.net includes everything you need to begin your e-commerce online store.",
8952-
Full = "<p>SmartStore.net includes everything you need to begin your e-commerce online store.<br/> We have thought of everything and it's all included!<br/><br/>smartstore.net is a fully customizable shop-system. It's stable and highly usable.<br> From downloads to documentation, www.smartstore.com offers a comprehensive base of information, resources, and support to the smartstore.net community.</p>",
8950+
Title = "SmartStore.NET new release!",
8951+
Short = "SmartStore.NET includes everything you need to begin your e-commerce online store.",
8952+
Full = "<p>SmartStore.NET includes everything you need to begin your e-commerce online store.<br/> We have thought of everything and it's all included!<br/><br/>smartstore.net is a fully customizable shop-system. It's stable and highly usable.<br> From downloads to documentation, www.smartstore.com offers a comprehensive base of information, resources, and support to the SmartStore.NET community.</p>",
89538953
Published = true,
8954-
MetaTitle = "smartstore.net new release!",
8954+
MetaTitle = "SmartStore.NET new release!",
89558955
CreatedOnUtc = DateTime.Now
89568956
};
89578957
var news2 = new NewsItem()

src/Presentation/SmartStore.Web/Infrastructure/Installation/DeDESeedData.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3705,7 +3705,7 @@ protected override void Alter(IList<NewsItem> entities)
37053705
base.Alter(entities);
37063706

37073707
entities.WithKey(x => x.MetaTitle)
3708-
.Alter("smartstore.net new release!", x =>
3708+
.Alter("SmartStore.NET new release!", x =>
37093709
{
37103710
x.Title = "SmartStore.NET - das clevere Shopsystem!";
37113711
x.Short = "SmartStore.NET ist die neue dynamische E-Commerce Lösung von SmartStore. SmartStore.NET bietet alle Funktionen und Möglichkeiten, um schnell und einfach einen leistungsfähigen und funktional kompletten Online-Shop zu erstellen.";

src/Presentation/SmartStore.Web/Themes/Web.config

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,10 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<configuration>
33
<system.webServer>
4-
<handlers accessPolicy="Script,Read">
5-
<!-- theme file inheritance -->
4+
<handlers accessPolicy="Script,Read">
5+
<add name="ThemePreviewImage" path="*/preview.png" verb="*" modules="StaticFileModule" preCondition="integratedMode" resourceType="File" requireAccess="Read"/>
6+
7+
<!-- theme file inheritance -->
68
<add name="StaticFileHandler-png" path="*.png" verb="GET,HEAD" type="System.Web.StaticFileHandler"/>
79
<add name="StaticFileHandler-gif" path="*.gif" verb="GET,HEAD" type="System.Web.StaticFileHandler"/>
810
<add name="StaticFileHandler-jpg" path="*.jpg" verb="GET,HEAD" type="System.Web.StaticFileHandler"/>

0 commit comments

Comments
 (0)