diff --git a/docs/_data/sections.yml b/docs/_data/sections.yml index 942a165d27a..7f65b4d5e98 100644 --- a/docs/_data/sections.yml +++ b/docs/_data/sections.yml @@ -37,7 +37,7 @@ - title: Widgets doc: application/widgets - - title: Widgets + - title: Templates doc: application/templates - title: API @@ -68,6 +68,9 @@ - title: Localization doc: user-interface/localization + - title: Parameters + doc: user-interface/parameters + #- title: Pages # doc: user-interface/pages diff --git a/docs/sections/application/parameters.md b/docs/sections/application/parameters.md index f56e74814c7..e56b12bf43a 100644 --- a/docs/sections/application/parameters.md +++ b/docs/sections/application/parameters.md @@ -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'); @@ -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', ]); diff --git a/docs/sections/application/templates.md b/docs/sections/application/templates.md index 67f3712ecc1..c2a0e4405c8 100644 --- a/docs/sections/application/templates.md +++ b/docs/sections/application/templates.md @@ -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 = [ @@ -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; @@ -145,7 +143,6 @@ class MyEntity Don't forget to update your serializer : ```php - namespace MyVendor\MyPluginBundle\Serializer; use Claroline\AppBundle\API\Options; @@ -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 // ... @@ -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 = [