Skip to content

Commit

Permalink
[Documentation] fixes navigation
Browse files Browse the repository at this point in the history
  • Loading branch information
Elorfin committed Jun 13, 2023
1 parent dc3f3cb commit aa422c0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
5 changes: 4 additions & 1 deletion docs/_data/sections.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
- title: Widgets
doc: application/widgets

- title: Widgets
- title: Templates
doc: application/templates

- title: API
Expand Down Expand Up @@ -68,6 +68,9 @@
- title: Localization
doc: user-interface/localization

- title: Parameters
doc: user-interface/parameters

#- title: Pages
# doc: user-interface/pages

Expand Down
2 changes: 0 additions & 2 deletions docs/sections/application/parameters.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@ with the `Claroline\CoreBundle\Library\Configuration\PlatformConfigurationHandle
Once you've injected the service, you can manipulate the platform parameters.

```php

// save the parameter `my_parameter` into platform_options.json
$this->config->setParameter('my_parameter', 'toto');

Expand All @@ -29,7 +28,6 @@ $this->config->getParameter('my_parameter') // return 'toto'
All methods of the PlatformConfigurationHandler accepts lodash like notation to search parameters.

```php

$this->config->setParameter('my_parameter', [
'key' => 'toto',
]);
Expand Down
5 changes: 0 additions & 5 deletions docs/sections/application/templates.md
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ You can use defined templates with the `Claroline\CoreBundle\Template\TemplateMa
### Default template

```php

$locale = 'en';
// provide values for the placeholders defined for the template type
$placeholders = [
Expand All @@ -126,7 +125,6 @@ For example, each badge can define the template to use to generate their certifi
Update your entity class :

```php

namespace MyVendor\MyPluginBundle\Entity;

use Claroline\CoreBundle\Entity\Model\Template;
Expand All @@ -145,7 +143,6 @@ class MyEntity
Don't forget to update your serializer :

```php

namespace MyVendor\MyPluginBundle\Serializer;

use Claroline\AppBundle\API\Options;
Expand Down Expand Up @@ -213,7 +210,6 @@ Add the field in your entity form (UI) :
You can now use the custom template :

```php

$myEntity = new MyEntity(); // in this example, we don't set a custom template for $myEntity so we will fallback on the default template

// ...
Expand Down Expand Up @@ -259,7 +255,6 @@ $this->dispatcher->dispatch(MessageEvents::MESSAGE_SENDING, SendMessageEvent::cl
For template types with `type: pdf`.

```php

$locale = 'en';
// provide values for the placeholders defined for the template type
$placeholders = [
Expand Down

0 comments on commit aa422c0

Please sign in to comment.