The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

WE_Frontend::Plugin::Teaser - teaser support

SYNOPSIS

From Template-Toolkit templates:

    [%- USE t = Teaser(objid=teaserpageid) -%]
    [%- SET teasercontent = t.content(teaser=teasernumber) -%]
    [%- FOREACH item = teasercontent.ct -%]
    ...
    [%- END -%]

DESCRIPTION

Teaser(objid = pageid)

Construct a teaser object with the specified object id.

content(teaser = teaser, lang = language)

Return the content of a requested teaser (by teaser number). Optionally use the specific language. If the lang variable is not given, then look for the lang variable in the global Template stash, otherwise fallback to de.