Skip to content
Snippets Groups Projects
Commit 535c0a76 authored by Georgi's avatar Georgi
Browse files

[BUGFIX] Improve README.md

parent c6b962df
No related branches found
No related tags found
No related merge requests found
......@@ -57,17 +57,17 @@ If the `?disableYoutubeCache=1` parameter is added to the URL, this cache will b
You can use a different API key for specific sites. You can implement a TypoScript page uid check and just change the
key from the "TypoScript integration" topic.
### Making changes in the JavaScript/CSS
We are shippning the extension with source files and already minified assets. By default
### 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:
Should you want to change this behavior, you can do to the following:
- Override the layout file in 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/
}
```
- Remove the CSS or JavaScript loading code from the layout
- 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,7 +75,7 @@ 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
- Import the CSS or JavaScript source files in your respective asset pipeline and add them externally.
### Compiling CSS/JS assets with SGC
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment