Tipafriend

From TYPO3Wiki

Jump to: navigation, search

<< Back to Extension manuals page

[edit]

TypoScript example

An example TypoScript code on how to configure Tip-A-Friend for TemplaVoila templates:

temp.tipafriend = USER
temp.tipafriend {
 userFunc = tx_tipafriend->main_tipafriend
 code = TIPLINK
 templateFile = {$plugin.tipafriend.file.templateFile}
 typolink.parameter = 999             # uid of the TipForm page
}

lib.tipafriend = TEXT
lib.tipafriend < temp.tipafriend

You set $plugin.tipafriend.file.templateFile in the Constants section of the template like this:

plugin.tipafriend.file.templateFile = fileadmin/templates/tipafriend.tmpl
Personal tools