Login / Status
developer.Resource
Home . Documentation . Document Library . Extension Manuals
Sponsors
hosted by punkt.deTYPO3 and Open Source Magazine

1.4. Configuration

  1. First install the extension via the Extension Manager

  2. In the “template”-module include the static TypoScript (include static from extensions)

  3. Adapt the language-file pi1/locallang.xml to integrate “your” language

  4. Create your own template file (see existing file in res/pageteaser_template.html for available markers)

  5. Change the path to the CSS-file in the template (###HEADER_ADDITIONS###), or simply change the delivered CSS-file manually

Template-specials

  1. 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

  2. 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

Reference

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.

Example

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}

}

}

}