-
${productName}
+
${sampleTypeName}
+
${productName}
${sample.title}
${shortDescription}
@@ -131,9 +170,9 @@ const dtModified = new Date(sample.updateDateTime)
`);
- return $items;
- } catch (error) {
- console.log("Error with one sample", error, sample);
- }
- return null;
+ return $items;
+ } catch (error) {
+ console.log("Error with one sample", error, sample);
+ }
+ return null;
}
\ No newline at end of file
diff --git a/docs/samples/compatibility.md b/docs/samples/compatibility.md
index 57fa39c6c..793f5be80 100644
--- a/docs/samples/compatibility.md
+++ b/docs/samples/compatibility.md
@@ -1,20 +1,24 @@
---
-title: Samples by Compatibility
+title: Samples by compatibility
template: filter.html
filteroptions:
- name: all
- title: SharePoint Online
+ title: All versions
displayname: All
filter: '*'
- active: true
+ active: true
+ - name: SPSubscription
+ title: v1.5 or lower
+ filter: '[data-subscription=''true'']'
+ displayname: Subscription Edition
- name: 2019
- title: SharePoint 2019
+ title: v1.4.1 or lower
filter: '[data-sp2019=''true'']'
- displayname: 2019
+ displayname: SharePoint Server 2019
- name: 2016
- title: SharePoint 2016
+ title: v1.1, web parts only
filter: '[data-sp2016=''true'']'
- displayname: 2016
+ displayname: SharePoint 2016 Feature Pack 2
- name: teams
title: Teams
filter: '[data-teams=''true'']'
@@ -23,8 +27,8 @@ filteroptions:
filter: '[data-outlook=''true'']'
---
-All samples are compatible with SharePoint Online. If you wish to find web parts that were specifically designed for SharePoint 2019, SharePoint 2016, Microsoft Teams, or Microsoft Outlook, use the filters below.
+All samples are compatible with SharePoint Online. If you wish to find samples that were specifically designed for SharePoint Server Subscription Edition,SharePoint Server 2019, SharePoint 2016 Feature Pack 2, Microsoft Teams, or Microsoft Outlook, use the filters below.
-To learn more about SPFx compatibility, visit the [SharePoint Framework development tools and libraries compatibility](https://docs.microsoft.com/sharepoint/dev/spfx/compatibility) on Microsoft Documentation.
+To learn more about SPFx compatibility, visit the [SharePoint Framework development tools and libraries compatibility](https://learn.microsoft.com/sharepoint/dev/spfx/compatibility) on Microsoft Documentation.
To learn more about how to use these samples, please refer to our [getting started](../gettingstarted/index.md) section.
diff --git a/docs/samples/spfx.md b/docs/samples/spfx.md
index a32ecb6d3..b7b48e11f 100644
--- a/docs/samples/spfx.md
+++ b/docs/samples/spfx.md
@@ -1,5 +1,5 @@
---
-title: Samples by SPFx Version
+title: Samples by SPFx version
template: filter.html
filteroptions:
- name: all
@@ -7,6 +7,10 @@ filteroptions:
displayname: All
filter: '*'
active: true
+ - name: 117
+ title: 1.17.x
+ displayname: 1.17
+ filter: '[data-spfx^=''1.17.'']'
- name: 116
title: 1.16.x
displayname: 1.16
@@ -28,12 +32,12 @@ filteroptions:
displayname: 1.12
filter: '[data-spfx^=''1.12.'']'
- name: 111
- title: 1.11.x
+ title: 1.11.0
displayname: 1.11
filter: '[data-spfx^=''1.11.'']'
- name: 110
- title: 1.10.x
- displayname: 1.10
+ title: 1.10.0
+ displayname: '1.10'
filter: '[data-spfx^=''1.10.'']'
- name: 190
title: 1.9.x
@@ -48,7 +52,7 @@ filteroptions:
displayname: 1.7
filter: '[data-spfx^=''1.7.'']'
- name: 160
- title: 1.6.x
+ title: 1.6.0
displayname: 1.6
filter: '[data-spfx^=''1.6.'']'
- name: 150
@@ -56,21 +60,13 @@ filteroptions:
displayname: 1.5
filter: '[data-spfx^=''1.5.'']'
- name: 140
- title: 1.4.x
+ title: 1.4.x or earlier
displayname: 1.4
- filter: '[data-spfx^=''1.4.'']'
- - name: 130
- title: 1.3.x
- displayname: 1.3
- filter: '[data-spfx^=''1.3.'']'
- - name: GA
- title: GA
- displayname: GA
- filter: '[data-spfx=''GA'']'
+ filter: '[data-spfx^=''1.4.''],[data-spfx^=''1.3.''],[data-spfx=''GA'']'
---
You can use the filters below to find samples by SharePoint Framework versions.
-To learn more about SPFx compatibility, visit the [SharePoint Framework development tools and libraries compatibility](https://docs.microsoft.com/sharepoint/dev/spfx/compatibility) on Microsoft Documentation.
+To learn more about SPFx compatibility, visit the [SharePoint Framework development tools and libraries compatibility](https://learn.microsoft.com/sharepoint/dev/spfx/compatibility) on Microsoft Documentation.
-To learn more about how to use these samples, please refer to our [getting started](../gettingstarted/index.md) section.
+To learn more about how to use these samples, please refer to our [getting started](../gettingstarted/index.md) section.
\ No newline at end of file
diff --git a/docs/samples/technology.md b/docs/samples/technology.md
index 7212c5c49..771a00d92 100644
--- a/docs/samples/technology.md
+++ b/docs/samples/technology.md
@@ -1,6 +1,6 @@
> NOTE: This file is no longer used. I just left it here because I need to move the filters to another page.
-# Samples by Technology
+# Samples by technology
Use the filters below to find samples which demonstrate how to use various Microsoft technologies.
diff --git a/docs/samples/type.md b/docs/samples/type.md
new file mode 100644
index 000000000..96b832dd4
--- /dev/null
+++ b/docs/samples/type.md
@@ -0,0 +1,34 @@
+---
+title: Samples by type
+template: filter.html
+filteroptions:
+ - name: all
+ title: All sample types
+ displayname: All
+ filter: '*'
+ active: true
+ - name: webpart
+ title: Web part
+ filter: '[data-type=''webpart'']'
+ - name: appcustomizer
+ title: Application customizer
+ filter: '[data-type=''appcustomizer'']'
+ - name: commandset
+ title: ListView command set
+ filter: '[data-type=''command'']'
+ - name: field
+ title: Field customizer
+ filter: '[data-type=''field'']'
+ - name: form
+ title: Form customizer
+ filter: '[data-type=''form'']'
+ - name: search
+ title: Search query extension
+ filter: '[data-type=''search'']'
+---
+
+If you're looking for a specific type of sample, use the filters select between [web parts](https://learn.microsoft.com/sharepoint/dev/spfx/web-parts/overview-client-side-web-parts) and [extensions](https://learn.microsoft.com/sharepoint/dev/spfx/extensions/overview-extensions).
+
+Extensions include [application customizers](https://learn.microsoft.com/sharepoint/dev/spfx/extensions/get-started/build-a-hello-world-extension), [field customizer extensions](
), [Form customizer extensions](https://learn.microsoft.com/sharepoint/dev/spfx/extensions/get-started/building-form-customizer), [ListView command set extensions](https://learn.microsoft.com/sharepoint/dev/spfx/extensions/get-started/building-simple-cmdset-with-dialog-api) and [search query extensions](https://learn.microsoft.com/sharepoint/dev/spfx/building-search-extensions), which are all available in the SharePoint Framework.
+
+To learn more about how to use these samples, please refer to our [getting started](../gettingstarted/index.md) section.
diff --git a/mkdocs.yml b/mkdocs.yml
index 8889dcd17..cb5f6018f 100644
--- a/mkdocs.yml
+++ b/mkdocs.yml
@@ -1,6 +1,6 @@
# Web Part Samples
# Author: Hugo Bernier
-site_name: SharePoint Framework Client-Side Web Part Samples
+site_name: SharePoint Framework (SPFx) Samples
plugins:
- macros
- markdownextradata
@@ -11,9 +11,10 @@ plugins:
# 'samples/framework': 'https://pnp.github.io/sp-dev-fx-webparts/'
nav:
- Samples:
- - By Framework: index.md
+ - By framework: index.md
+ - By type: samples/type.md
- By SPFx Version: samples/spfx.md
- - By Compatibility: samples/compatibility.md
+ - By compatibility: samples/compatibility.md
- Getting Started:
- Using the Samples: gettingstarted/index.md
- Troubleshooting: gettingstarted/troubleshooting.md