#agrid_bundle
Version:
agrid_bundle v 2.0.8
**- Require:**
# Extension of the parent template:
Add this lines in config/packages/twig.yaml for global variable of base template from which we will inherit
globals:
parent_template: 'base.html.twig'
content_col_module: '@agrid.content_col_module.manager'
agrid_cache_service: '@agrid.cache_service'
html_loader : '
'
# Interfaces configuration:
Add this lines in doctrine.yaml file orm section for declare all interfaces**
resolve_target_entities:
AGridBundle\Interfaces\SEOInterface: AGridBundle\Entity\AGridSlugElement
# Cache pool configuration:
Add this lines in framework.yaml file orm section for declare all interfaces**
framework:
...
cache:
pools:
agrid_pool:
tags: true
# Import Tinymce with npm in project:
In the terminal we execute the following commands
npm i tinymce
npm i tinymce-i18n
npm installer copie-webpack-plugin --save-dev
In the project's webpack configuration file ("webpack.config.js"), add the following lines
...
const CopyWebpackPlugin = require('copy-webpack-plugin');
...
Encore
...
.addPlugin(new CopyWebpackPlugin([
// Copy the langs, icons, themes, skins, plugins from tinymce to the build/* directory
{ from: 'node_modules/tinymce-i18n/langs5', to: 'langs' },
{ from: 'node_modules/tinymce/icons', to: 'icons' },
{ from: 'node_modules/tinymce/themes', to: 'themes' },
{ from: 'node_modules/tinymce/skins', to: 'skins' },
{ from: 'node_modules/tinymce/plugins', to: 'plugins' },
]))