Skip to content

Commit 84c7e1c

Browse files
committed
Merge branch 'develop'
* develop: bugfix: missing var for navigation while exporting Fix styling fix: not effect for set parent_id for navigation on create wip: docs add "Parent" field for navifation to easily insert data Revert "apply attributes to markdown"
2 parents 853a391 + 348a674 commit 84c7e1c

30 files changed

Lines changed: 438 additions & 378 deletions

docs/core/Caching.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ Caching in InspireCMS accelerates content delivery by storing frequently accesse
1818

1919
Configure caching in your application's configuration files.
2020

21-
### Main Cache Settings { .font-bold .text-2xl .my-2 }
21+
### Main Cache Settings
2222

2323
Configure basic cache settings in `config/inspirecms.php`:
2424

@@ -42,7 +42,7 @@ Configure basic cache settings in `config/inspirecms.php`:
4242
],
4343
```
4444

45-
### Laravel Cache Driver Configuration { .font-bold .text-2xl .my-2 }
45+
### Laravel Cache Driver Configuration
4646

4747
InspireCMS uses Laravel's caching system. Configure the cache driver in `config/cache.php`:
4848

@@ -84,7 +84,7 @@ InspireCMS uses Laravel's caching system. Configure the cache driver in `config/
8484

8585
InspireCMS automatically caches content to reduce database queries.
8686

87-
### Content Cache Configuration { .font-bold .text-2xl .my-2 }
87+
### Content Cache Configuration
8888

8989
Adjust content cache settings:
9090

@@ -99,7 +99,7 @@ Adjust content cache settings:
9999
],
100100
```
101101

102-
### Content Cache Tags { .font-bold .text-2xl .my-2 }
102+
### Content Cache Tags
103103

104104
Content is cached with tags for easy invalidation:
105105

@@ -118,7 +118,7 @@ $content = Cache::tags(['content:123'])->remember('content:123', 3600, function
118118
});
119119
```
120120

121-
### Invalidating Content Cache { .font-bold .text-2xl .my-2 }
121+
### Invalidating Content Cache
122122

123123
Automatically invalidated when content is updated, but can also be cleared manually:
124124

@@ -134,7 +134,7 @@ Cache::tags(['content:type:blog'])->flush();
134134

135135
Navigation structure is cached for improved performance.
136136

137-
### Navigation Cache Configuration { .font-bold .text-2xl .my-2 }
137+
### Navigation Cache Configuration
138138

139139
```php
140140
// config/inspirecms.php
@@ -146,7 +146,7 @@ Navigation structure is cached for improved performance.
146146
],
147147
```
148148

149-
### Working with Navigation Cache { .font-bold .text-2xl .my-2 }
149+
### Working with Navigation Cache
150150

151151
Example of cached navigation retrieval:
152152

@@ -155,7 +155,7 @@ Example of cached navigation retrieval:
155155
$navigation = inspirecms()->getNavigation('main', 'en');
156156
```
157157

158-
### Invalidating Navigation Cache { .font-bold .text-2xl .my-2 }
158+
### Invalidating Navigation Cache
159159

160160
Clear the navigation cache manually:
161161

@@ -171,7 +171,7 @@ Cache::forget("inspirecms.navigation.main.en");
171171

172172
InspireCMS caches content routes for faster URL resolution.
173173

174-
### Route Cache Configuration { .font-bold .text-2xl .my-2 }
174+
### Route Cache Configuration
175175

176176
```php
177177
// config/inspirecms.php
@@ -183,7 +183,7 @@ InspireCMS caches content routes for faster URL resolution.
183183
],
184184
```
185185

186-
### Route Cache Commands { .font-bold .text-2xl .my-2 }
186+
### Route Cache Commands
187187

188188
In addition to Laravel's route caching, clear InspireCMS route cache:
189189

@@ -195,7 +195,7 @@ php artisan inspirecms:clear-route-cache
195195

196196
Templates are cached at different levels for optimal performance.
197197

198-
### View Cache { .font-bold .text-2xl .my-2 }
198+
### View Cache
199199

200200
Laravel's view cache for compiled templates:
201201

@@ -207,7 +207,7 @@ php artisan view:cache
207207
php artisan view:clear
208208
```
209209

210-
### Fragment Caching { .font-bold .text-2xl .my-2 }
210+
### Fragment Caching
211211

212212
Cache specific parts of templates:
213213

@@ -231,7 +231,7 @@ $cacheTtl = 60 * 24; // 24 hours in minutes
231231

232232
Cache database queries to reduce load on your database.
233233

234-
### Model Cache { .font-bold .text-2xl .my-2 }
234+
### Model Cache
235235

236236
Cache model queries directly:
237237

@@ -247,7 +247,7 @@ $posts = Cache::remember('published_blog_posts', 3600, function () {
247247
});
248248
```
249249

250-
### Query Cache Considerations { .font-bold .text-2xl .my-2 }
250+
### Query Cache Considerations
251251

252252
- Cache appropriate queries (frequently accessed, rarely changing)
253253
- Use specific cache keys based on query parameters
@@ -258,7 +258,7 @@ $posts = Cache::remember('published_blog_posts', 3600, function () {
258258

259259
Media and asset caching improves frontend performance.
260260

261-
### Media Cache Configuration { .font-bold .text-2xl .my-2 }
261+
### Media Cache Configuration
262262

263263
Configure cache headers for media assets:
264264

@@ -274,7 +274,7 @@ Configure cache headers for media assets:
274274
],
275275
```
276276

277-
### Asset Preprocessing { .font-bold .text-2xl .my-2 }
277+
### Asset Preprocessing
278278

279279
For frontend assets, use Laravel Mix or Vite with proper versioning:
280280

@@ -288,7 +288,7 @@ For frontend assets, use Laravel Mix or Vite with proper versioning:
288288

289289
Implement HTTP caching for better performance.
290290

291-
### Cache Headers { .font-bold .text-2xl .my-2 }
291+
### Cache Headers
292292

293293
InspireCMS sets proper cache headers for different content types:
294294

@@ -310,7 +310,7 @@ public function handle($request, Closure $next)
310310
}
311311
```
312312

313-
### Custom Cache Middleware { .font-bold .text-2xl .my-2 }
313+
### Custom Cache Middleware
314314

315315
Create custom cache middleware for specific sections:
316316

@@ -354,7 +354,7 @@ protected $middlewareGroups = [
354354

355355
Populate cache in advance to avoid cache misses and initial slowdowns.
356356

357-
### Cache Warming Command { .font-bold .text-2xl .my-2 }
357+
### Cache Warming Command
358358

359359
Create a command to pre-populate cache:
360360

@@ -438,7 +438,7 @@ protected function schedule(Schedule $schedule)
438438

439439
Properly clear cache when needed to ensure fresh content.
440440

441-
### Cache Clear Commands { .font-bold .text-2xl .my-2 }
441+
### Cache Clear Commands
442442

443443
InspireCMS provides specific commands for clearing various caches:
444444

@@ -452,7 +452,7 @@ php artisan inspirecms:clear-route-cache
452452
php artisan inspirecms:clear-navigation-cache
453453
```
454454

455-
### Automatic Cache Clearing { .font-bold .text-2xl .my-2 }
455+
### Automatic Cache Clearing
456456

457457
InspireCMS automatically clears relevant caches when:
458458

@@ -465,7 +465,7 @@ InspireCMS automatically clears relevant caches when:
465465

466466
Track and optimize your cache performance.
467467

468-
### Cache Hit/Miss Tracking { .font-bold .text-2xl .my-2 }
468+
### Cache Hit/Miss Tracking
469469

470470
Implement cache monitoring:
471471

@@ -488,7 +488,7 @@ public function remember($key, $ttl, $callback)
488488
}
489489
```
490490

491-
### Cache Performance Dashboard { .font-bold .text-2xl .my-2 }
491+
### Cache Performance Dashboard
492492

493493
Consider implementing a cache monitoring dashboard:
494494

docs/core/ControlPanel.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ The control panel is organized into several main sections:
4040

4141
## Content Management
4242

43-
### Content List View { .font-bold .text-2xl .my-2 }
43+
### Content List View
4444

4545
The Content section lists all your content items with filtering and search capabilities:
4646

@@ -49,7 +49,7 @@ The Content section lists all your content items with filtering and search capab
4949
- Search content by keyword
5050
- Bulk operations for multiple items
5151

52-
### Content Editor { .font-bold .text-2xl .my-2 }
52+
### Content Editor
5353

5454
The content editor includes:
5555

@@ -84,7 +84,7 @@ The Settings section includes:
8484

8585
## Customizing the Control Panel
8686

87-
### Branding { .font-bold .text-2xl .my-2 }
87+
### Branding
8888

8989
You can customize the appearance of the control panel through the configuration file:
9090

@@ -101,7 +101,7 @@ You can customize the appearance of the control panel through the configuration
101101

102102
The control panel automatically adapts to these branding settings, giving your admin area a custom look that matches your site's identity.
103103

104-
### Adding Custom Resources { .font-bold .text-2xl .my-2 }
104+
### Adding Custom Resources
105105

106106
You can extend the control panel with your own resources:
107107

@@ -117,7 +117,7 @@ You can extend the control panel with your own resources:
117117
],
118118
```
119119

120-
### Adding Custom Pages { .font-bold .text-2xl .my-2 }
120+
### Adding Custom Pages
121121

122122
You can add custom pages to the control panel:
123123

@@ -133,11 +133,11 @@ You can add custom pages to the control panel:
133133
],
134134
```
135135

136-
### Control Panel Appearance { .font-bold .text-2xl .my-2 }
136+
### Control Panel Appearance
137137

138138
You can fully customize the control panel's theme by overriding the default CmsPanelProvider. This allows you to change colors, fonts, and other visual elements to match your brand.
139139

140-
#### Creating a Custom Panel Provider { .font-bold .my-2 }
140+
#### Creating a Custom Panel Provider
141141

142142
First, create a custom provider class that extends the base CmsPanelProvider:
143143

@@ -168,7 +168,7 @@ class CustomCmsPanelProvider extends CmsPanelProvider
168168
}
169169
```
170170

171-
#### Registering Your Custom Provider { .font-bold .my-2 }
171+
#### Registering Your Custom Provider
172172

173173
Next, register your custom provider in `bootstrap/providers.php`:
174174

@@ -194,7 +194,7 @@ InspireCMS comes with several dashboard widgets:
194194
- **Template Info**: Provides information about available templates
195195
- **Tree Navigation**: Visual navigation builder
196196

197-
### Adding Custom Widgets { .font-bold .text-2xl .my-2 }
197+
### Adding Custom Widgets
198198

199199
You can add custom widgets by extending your custom panel provider:
200200

0 commit comments

Comments
 (0)