strapi-plugin-cm-subnav-stacker 1.0.0 → 1.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +25 -0
  2. package/package.json +4 -3
package/README.md CHANGED
@@ -2,6 +2,16 @@
2
2
 
3
3
  Automatically groups related content types in the Strapi Content Manager sidebar into collapsible subnavigation sections based on name patterns.
4
4
 
5
+ ## Installation
6
+
7
+ Install the plugin via npm:
8
+
9
+ ```bash
10
+ npm install strapi-plugin-cm-subnav-stacker
11
+ ```
12
+
13
+ Then enable the plugin in your `config/plugins.ts` (see Configuration section below).
14
+
5
15
  ## Features
6
16
 
7
17
  - Automatically organizes content types with common prefixes/patterns into grouped sections
@@ -76,6 +86,21 @@ GroupName | ItemName
76
86
 
77
87
  These will be automatically grouped under "Blog" and "Product" respectively.
78
88
 
89
+ #### Ordering
90
+
91
+ To control the order of items within a group, prefix the title with `[<number>]`:
92
+
93
+ ```
94
+ GroupName | [<number>] ItemName
95
+ ```
96
+
97
+ **Examples:**
98
+ - `[1] Blog | Category`
99
+ - `[2] Blog | Post`
100
+ - `[3] Blog | Tag`
101
+
102
+ Items will be sorted numerically based on the number prefix within each group.
103
+
79
104
  ## Environment Variables
80
105
 
81
106
  You can configure the plugin using environment variables in your `.env` file:
package/package.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "version": "1.0.0",
2
+ "version": "1.0.1",
3
3
  "keywords": [],
4
4
  "type": "commonjs",
5
5
  "exports": {
@@ -83,6 +83,7 @@
83
83
  "url": "https://github.com/patiparnne/strapi-plugin-cm-subnav-stacker/issues"
84
84
  },
85
85
  "homepage": "https://github.com/patiparnne/strapi-plugin-cm-subnav-stacker#readme",
86
- "buy_me_a_coffee": "patiparnne",
87
- "author": "Patiparnne <partyparti@gmail.com>"
86
+ "author": "Patiparnne <partyparti@gmail.com>",
87
+ "buy_me_a_coffee": "https://buymeacoffee.com/patiparnne",
88
+ "patreon": "https://www.patreon.com/patiparnne"
88
89
  }