Skip to content

Commit 07754db

Browse files
committed
wip:docs
1 parent 897ad6c commit 07754db

File tree

9 files changed

+293
-1610
lines changed

9 files changed

+293
-1610
lines changed

docs/frontend/Blade.md

Lines changed: 26 additions & 631 deletions
Large diffs are not rendered by default.

docs/frontend/Components.md

Lines changed: 16 additions & 333 deletions
Large diffs are not rendered by default.

docs/frontend/Content.md

Lines changed: 5 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -179,33 +179,14 @@ $paginatedContent = inspirecms_content()->getPaginatedByDocumentType(documentTyp
179179
{{ $paginatedContent->links() }}
180180
```
181181

182-
## Customizing Services
183-
184-
You can customize any service by binding your own implementation in your ServiceProvider's `boot` method:
185-
186-
```php
187-
use SolutionForest\InspireCms\Services\ContentServiceInterface;
188-
189-
public function boot()
190-
{
191-
// Customizing Content Service
192-
$this->app->singleton(ContentServiceInterface::class, fn () => new YourContentService());
193-
}
194-
```
195-
196-
```php
197-
use SolutionForest\InspireCms\Services\ContentServiceInterface;
198-
199-
class YourContentService implements ContentServiceInterface
200-
{
201-
202-
}
203-
```
204-
205182
## Best Practices
206183

207184
- Use `inspirecms_content()` helper for retrieving content instead of direct database queries
208185
- Always check if properties exist before using them
209186
- Cache frequent content queries for better performance
210187
- For large content sets, use pagination to improve page load times
211-
- Use property directives in Blade templates for cleaner syntax
188+
- Use property directives in Blade templates for cleaner syntax
189+
190+
> **Note:** For details on how to use content properties in templates, see the [Blade](./Blade.md) documentation.
191+
>
192+
> For examples of displaying content in components and layouts, see the [Components](./Components.md) and [Layouts](./Layouts.md) documentation.

0 commit comments

Comments
 (0)