First install the extension via the Extension Manager
In the “template”-module include the static TypoScript (include static from extensions)
Adapt the language-file pi1/locallang.xml to integrate “your” language
Create your own template file (see existing file in res/pageteaser_template.html for available markers)
Change the path to the CSS-file in the template (###HEADER_ADDITIONS###), or simply change the delivered CSS-file manually
The marker ###oddeven### will be replaced with a simple text “odd” or “even” - depending on the position of the actual page in the Page teaser. So you can easily apply different styles for e.g. ever second page in the page teaser
You can add your own e.g. JavaScript- or CSS-files via the template. That's the way how I included the CSS-files for the extension
Property: | Data type: | Description: | Default: |
|---|---|---|---|
ignorePagesWithoutAbstract | boolean | If set, all pages without an abstract-text are excluded from the pageteaser | 0 |
IgnorePagesWithoutImage | boolean | If set, all pages without an image are excluded from the pageteaser | 0 |
singleView | There is only one view integratet | ||
tstamp_stdWrap | wrap | Wraps the tstamp-field, and you are able to specify the dateformat. | |
crdate_stdWrap | wrap | Wraps the crdate-field, and you are able to specify the dateformat. |
Here is the TypoScript from the static-folder:
plugin.tx_rtpageteaser_pi1 {
limitPages = {$plugin.tx_rtpageteaser_pi1.limitPages}
templateFile = {$plugin.tx_rtpageteaser_pi1.templateFile}
ignorePagesWithoutAbstract = 0
ignorePagesWithoutImage = 0
cropOnlyAfterWords = 1
use_dam_pages = {$plugin.tx_rtpageteaser_pi1.use_dam_pages}
singleView {
image = IMAGE
image {
file.maxW = 100m
file.maxH = 150m
}
tstamp_stdWrap {
strftime = %x
}
crdate_stdWrap {
strftime = %x
}
title_stdWrap {
typolink.parameter.dataWrap = {field:uid}
}
keywords_stdWrap {
wrap = Keywords:|
}
morelink_stdWrap {
typolink.parameter.dataWrap = {field:uid}
}
}
}