Skip to content

Commit 7c262c3

Browse files
committed
updated demo files, including screenshots
1 parent cda9dcf commit 7c262c3

5 files changed

Lines changed: 25 additions & 8 deletions

File tree

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,11 @@
88

99
A comprehensive settings management system for Xperience by Kentico applications, supporting both **global settings** and/or **channel-specific settings** with automatic fallback.
1010

11-
![Project Settings Demo](https://raw.githubusercontent.com/roeldeb/xperiencecommunity-projectsettings/main/images/projects-settings-demo.jpg)
11+
### Global settings
12+
[![Project Settings Demo](https://raw.githubusercontent.com/roeldeb/xperiencecommunity-projectsettings/main/images/projects-settings-demo.jpg)](https://raw.githubusercontent.com/roeldeb/xperiencecommunity-projectsettings/main/images/projects-settings-demo.jpg)
13+
14+
### Channel settings
15+
[![Project Settings Demo](https://raw.githubusercontent.com/roeldeb/xperiencecommunity-projectsettings/main/images/projects-settings-demo-2.jpg)](https://raw.githubusercontent.com/roeldeb/xperiencecommunity-projectsettings/main/images/projects-settings-demo-2.jpg)
1216

1317
> **⚠️ Internal API Warning:** This library depends on `Kentico.Xperience.Admin.Base.Forms.Internal`. This namespace is not part of Kentico's public API surface and may change between Xperience by Kentico versions without notice. Upgrading to a newer version of Xperience by Kentico may temporarily break this library until a compatible update is released.
1418

examples/DancingGoat/ProjectSettings/ProjectSettingsUsageExample.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ public void UseSettings()
2424
var settings = _seoSettings.Value;
2525

2626
// Use the settings
27-
var showRobots = settings.ShowRobots;
28-
var favicon = settings.Favicon;
27+
var titleSuffix = settings.MetaTitleSuffix;
28+
var robotsDirective = settings.RobotsDirective;
2929

3030
// Settings are cached per request and per channel
3131
}

examples/DancingGoat/ProjectSettings/SeoProjectSettings.cs

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,11 +15,24 @@ public class SeoProjectSettings : IProjectSettingsType
1515
public string SettingsSlug => UIPAGE_SLUG;
1616
public string SettingsName => "Seo.Settings";
1717
public string SettingsDisplayName => "SEO Settings";
18-
public string SettingsExplanation => "Setup your <strong>SEO</strong> here.";
18+
public string SettingsExplanation => "Configure how this channel appears in search engines and on social media. " +
19+
"These values are used as defaults for pages that don't specify their own metadata.";
1920

20-
[CheckBoxComponent(Label = "Show Robots", Order = 101, ExplanationText = "Do you want to show some robots?")]
21-
public virtual bool ShowRobots { get; set; } = false;
21+
[TextInputComponent(Label = "Meta title suffix", Order = 101,
22+
ExplanationText = "Appended to every page title, e.g. \"Espresso Blend | Dancing Goat\".")]
23+
public virtual string MetaTitleSuffix { get; set; } = " | Dancing Goat";
2224

23-
[UrlSelectorComponent(Label = "Favicon", Order = 102)]
24-
public virtual string Favicon { get; set; } = string.Empty;
25+
[TextAreaComponent(Label = "Default meta description", Order = 102, MaxRowsNumber = 3,
26+
ExplanationText = "Fallback description (~160 characters) for pages without their own.")]
27+
public virtual string DefaultMetaDescription { get; set; } =
28+
"Freshly roasted, ethically sourced coffee delivered to your door. Discover the Dancing Goat difference.";
29+
30+
[DropDownComponent(Label = "Search engine indexing", Order = 103,
31+
ExplanationText = "Controls the robots meta tag emitted on every page.",
32+
Options = "index,follow;Index and follow (public site)\nnoindex,nofollow;Block indexing (staging)")]
33+
public virtual string RobotsDirective { get; set; } = "index,follow";
34+
35+
[UrlSelectorComponent(Label = "Default social share image", Order = 104,
36+
ExplanationText = "Open Graph / Twitter card image used when a page has none (1200x630 recommended).")]
37+
public virtual string DefaultOpenGraphImage { get; set; } = string.Empty;
2538
}
102 KB
Loading

images/projects-settings-demo.jpg

55.1 KB
Loading

0 commit comments

Comments
 (0)