You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/caching.md
+13-11Lines changed: 13 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,19 +2,21 @@
2
2
title: Caching
3
3
slug: caching
4
4
path: docs/v1/caching
5
-
uri: /docs/1.x/caching
5
+
uri: /docs/v1/caching
6
6
heading: Caching
7
-
brief:
7
+
brief:
8
+
quick_links: []
8
9
---
9
10
11
+
10
12
## Overview
11
13
12
14
Caching in InspireCMS accelerates content delivery by storing frequently accessed data in fast-access storage. The system employs several caching strategies:
13
15
14
-
-**Language Cache**
15
-
-**Navigation Cache**: Makes menu loading faster
16
-
-**Route Cache**: Improves URL resolution
17
-
-**KeyValue Cache**: Stores simple configuration and settings data
16
+
-**Language Cache**
17
+
-**Navigation Cache**: Makes menu loading faster
18
+
-**Route Cache**: Improves URL resolution
19
+
-**KeyValue Cache**: Stores simple configuration and settings data
18
20
19
21
---
20
22
@@ -105,7 +107,6 @@ Clear the language cache manually:
Copy file name to clipboardExpand all lines: docs/configuration.md
+13-3Lines changed: 13 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,3 +1,13 @@
1
+
---
2
+
title: Configuration
3
+
slug: configuration
4
+
path: docs/v1/configuration
5
+
uri: /docs/v1/configuration
6
+
heading: Configuration
7
+
brief:
8
+
quick_links: []
9
+
---
10
+
1
11
## Configuration Files
2
12
3
13
InspireCMS's configuration is primarily managed through the `config/inspirecms.php` file. If this file doesn't exist after installation, you can publish it using:
Configure how users authenticate with your CMS \([learn more about laravel authentication](<(https://laravel.com/docs/12.x/authentication#adding-custom-guards)>)\):
54
+
Configure how users authenticate with your CMS \([learn more about laravel authentication](https://laravel.com/docs/12.x/authentication#adding-custom-guards)\):
45
55
46
56
```php
47
57
'auth' => [
@@ -492,7 +502,7 @@ Control how InspireCMS handles frontend requests:
492
502
* Override to implement custom slug generation rules
Copy file name to clipboardExpand all lines: docs/content-drafts-revisions.md
+6-2Lines changed: 6 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,15 +2,19 @@
2
2
title: Content Drafts & Revisions
3
3
slug: content-drafts-revisions
4
4
path: docs/v1/content-drafts-revisions
5
-
uri: /docs/1.x/content-drafts-revisions
5
+
uri: /docs/v1/content-drafts-revisions
6
6
heading: Content Drafts & Revisions
7
7
brief: InspireCMS provides a content versioning system that allows you to work with drafts and track revisions of your content. This guide explains how to use these features to manage your content workflow effectively.
8
+
9
+
quick_links: []
8
10
---
9
11
10
-
## Content States Overview
12
+
## Overview
11
13
12
14
In InspireCMS, content can exist in various states:
Copy file name to clipboardExpand all lines: docs/content-routing.md
+57-2Lines changed: 57 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,10 @@
2
2
title: Content Routing
3
3
slug: content-routing
4
4
path: docs/v1/content-routing
5
-
uri: /docs/1.x/content-routing
5
+
uri: /docs/v1/content-routing
6
6
heading: Content Routing
7
-
brief:
7
+
brief:
8
+
quick_links: []
8
9
---
9
10
10
11
## Overview
@@ -15,6 +16,18 @@ By default, content URLs follow a hierarchical structure:
15
16
/parent-section/child-section/content-slug
16
17
```
17
18
19
+
**Example Content Structure**:
20
+
21
+
```plaintext
22
+
- Root
23
+
- about
24
+
- products
25
+
- widgets
26
+
- blue-widget
27
+
- gadgets
28
+
- red-gadget
29
+
```
30
+
18
31
For example:
19
32
20
33
-`/about`: A top-level "About" page
@@ -49,6 +62,16 @@ Define constraints to validate parameters:
49
62
]
50
63
```
51
64
65
+
### Accessing Route Variables in Blade
66
+
67
+
After setting a content route with parameters, you can access those variables in your Blade templates. For example, if your route is defined as `/blog/{year}/{month}/{slug}`, you can access the `{year}` variable like this in your `blade.php` file:
68
+
69
+
```php
70
+
<p>Year: {{ $year }}</p>
71
+
```
72
+
73
+
This allows you to dynamically display content based on the URL parameters.
74
+
52
75
---
53
76
54
77
## Content Slugs
@@ -79,6 +102,38 @@ Slugs must:
79
102
- Not conflict with existing routes or reserved words
80
103
- Be unique within their parent section
81
104
105
+
### Customizing the Slug Generator
106
+
You can customize how slugs are generated by modifying the `slug_generator` setting in your configuration file. Here's how:
107
+
108
+
1. Locate `frontend` section in the `config/inspirecms.php` file.
Copy file name to clipboardExpand all lines: docs/custom-fields.md
+12-2Lines changed: 12 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,10 +1,11 @@
1
1
---
2
-
title:
2
+
title:Custom Fields
3
3
slug: custom-fields
4
4
path: docs/v1/custom-fields
5
-
uri: /docs/1.x/custom-fields
5
+
uri: /docs/v1/custom-fields
6
6
heading: Custom Fields
7
7
brief:
8
+
quick_links: []
8
9
---
9
10
10
11
Note: This document depends on the [Filament Field Group](https://github.com/solutionforest/filament-field-group). Field types may not update automatically; for missing or updated field references, please consult that repository.
@@ -54,6 +55,9 @@ InspireCMS offers a wide range of field types for different content needs:
54
55
Field groups organize related fields together. To create a field group:
55
56
56
57
1. Navigate to **Settings** > **Custom Fields** in the admin panel
Copy file name to clipboardExpand all lines: docs/customize-the-admin-panel.md
+5-2Lines changed: 5 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,9 +2,12 @@
2
2
title: Customize the Admin Panel
3
3
slug: customize-the-admin-panel
4
4
path: docs/v1/customize-the-admin-panel
5
-
uri: /docs/1.x/customize-the-admin-panel
5
+
uri: /docs/v1/customize-the-admin-panel
6
6
heading: Customize the Admin Panel
7
-
brief: This guide explains how to customize and extend the admin panel to meet your specific needs, including creating custom resources, pages, widgets, and modifying the appearance to match your brand. Whether you need to add new functionality or tailor the existing features, InspireCMS offers multiple extension points for developers.
7
+
brief: This guide explains how to customize and extend the admin panel to meet your specific needs, including creating custom resources, pages, widgets, and modifying the appearance to match your brand.
8
+
9
+
Whether you need to add new functionality or tailor the existing features, InspireCMS offers multiple extension points for developers.
0 commit comments