Skip to content

Commit

Permalink
[TASK] provide site sets
Browse files Browse the repository at this point in the history
  • Loading branch information
achimfritz committed Aug 1, 2024
1 parent 57efa88 commit 6395799
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 61 deletions.
2 changes: 2 additions & 0 deletions Configuration/Sets/Picture/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
name: b13/picture
label: Picture
32 changes: 32 additions & 0 deletions Configuration/Sets/Picture/setup.typoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
plugin.tx_picture {
# Default for adding of images as webp.
addWebp = 0

# Default for render images as webp only.
onlyWebp = 0

# Default for adding retina images.
useRetina = 0

# Default for using lossless compression for webp.
lossless = 0

# Works only in combination with useRetina = 1.
# The key must be the multiplier of the image size and the value the multiplier string added in the srcset
# attribute's value. E.g. add "3 = 3x" to array:
# retina.2 = 2x
# retina.3 = 3x
retina {
2 = 2x
}

# Breakpoints for media query specified in the sources attribute:
# breakpoints {
# sm = 640
# md = 1024
# lg = 1280
# }

# We use the same lazyLoading setting as is the default for the website
lazyLoading = {$styles.content.image.lazyLoading}
}
4 changes: 4 additions & 0 deletions Configuration/Sets/PictureTest/config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
name: b13/picture/test
label: Picture Test
dependencies:
- b13/picture
27 changes: 27 additions & 0 deletions Configuration/Sets/PictureTest/setup.typoscript
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
plugin.tx_picture {
retina {
2 = 2x
3 = 3x
}

breakpoints {
sm = 640
md = 1024
lg = 1280
}
}

imagetest = PAGE
imagetest {
typeNum = 1573387706874

10 = FLUIDTEMPLATE
10.file = EXT:picture/Resources/Private/Templates/Test.html

headerData.1573465962914 = TEXT
headerData.1573465962914.value (
<style>
code { display: block; margin: 1em 0; }
</style>
)
}
33 changes: 1 addition & 32 deletions Configuration/TypoScript/setup.typoscript
Original file line number Diff line number Diff line change
@@ -1,32 +1 @@
plugin.tx_picture {
# Default for adding of images as webp.
addWebp = 0

# Default for render images as webp only.
onlyWebp = 0

# Default for adding retina images.
useRetina = 0

# Default for using lossless compression for webp.
lossless = 0

# Works only in combination with useRetina = 1.
# The key must be the multiplier of the image size and the value the multiplier string added in the srcset
# attribute's value. E.g. add "3 = 3x" to array:
# retina.2 = 2x
# retina.3 = 3x
retina {
2 = 2x
}

# Breakpoints for media query specified in the sources attribute:
# breakpoints {
# sm = 640
# md = 1024
# lg = 1280
# }

# We use the same lazyLoading setting as is the default for the website
lazyLoading = {$styles.content.image.lazyLoading}
}
@import 'EXT:picture/Configuration/Sets/Picture/setup.typoscript'
31 changes: 2 additions & 29 deletions Configuration/TypoScript/test.typoscript
Original file line number Diff line number Diff line change
@@ -1,29 +1,2 @@
@import 'EXT:picture/Configuration/TypoScript/setup.typoscript'

plugin.tx_picture {
retina {
2 = 2x
3 = 3x
}

breakpoints {
sm = 640
md = 1024
lg = 1280
}
}

imagetest = PAGE
imagetest {
typeNum = 1573387706874

10 = FLUIDTEMPLATE
10.file = EXT:picture/Resources/Private/Templates/Test.html

headerData.1573465962914 = TEXT
headerData.1573465962914.value (
<style>
code { display: block; margin: 1em 0; }
</style>
)
}
@import 'EXT:picture/Configuration/Sets/Picture/setup.typoscript'
@import 'EXT:picture/Configuration/Sets/PictureTest/setup.typoscript'

0 comments on commit 6395799

Please sign in to comment.