Slaven Rezić > WE_Framework-0.097_03 > WE_Frontend::Plugin::Teaser

Download:
WE_Framework-0.097_03.tar.gz

Dependencies

Annotate this POD

Module Version: 1.03   Source  

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.

syntax highlighting: