From 7bc5131a945b60d4149499778b24f230b6c61d6a Mon Sep 17 00:00:00 2001 From: Georgi Mateev <georgi.mateev@sgalinski.de> Date: Fri, 8 Sep 2023 20:28:10 +0300 Subject: [PATCH] [BUGFIX] Code cleanup --- README.md | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 0cda8da..5fe1ada 100644 --- a/README.md +++ b/README.md @@ -58,16 +58,21 @@ You can use a different API key for specific sites. You can implement a TypoScri key from the "TypoScript integration" topic. ### Making changes in JavaScript/CSS + We are shipping the extension with source files and already minified assets. By default, we the minified assets are loaded in the Layout, so that the extension works out of the box just with plug and play. Should you want to change this behavior, you can do to the following: -- Override the layout path in TypoScript local/project_theme/Configuration/TypoScript/Extensions/SgYouTube/Constants.typoscript +- Override the layout path in TypoScript + local/project_theme/Configuration/TypoScript/Extensions/SgYouTube/Constants.typoscript + ``` view { layoutRootPath = EXT:project_theme/Resources/Private/Layouts/SgYouTube/ } ``` + - Create a new layout file omitting the assets that you would like to change (for example loading without CSS) + ``` <div class="tx-sg-youtube"> <f:asset.script identifier="sgVideoJs" src="EXT:sg_youtube/Resources/Public/JavaScript/Dist/main.bundled.min.js" /> @@ -75,8 +80,8 @@ Should you want to change this behavior, you can do to the following: </div> ``` -- Import the CSS or JavaScript source files in your respective asset pipeline and add them externally. +- Import the CSS or JavaScript source files in your respective asset pipeline and add them externally. ### Compiling CSS/JS assets with SGC -- GitLab