[Typo3] TV & Tip-a-Friend Plugin
Ries van Twisk
typo3 at rvt.dds.nl
Tue Feb 15 20:07:36 CET 2005
Taylor, Jeff wrote:
>-----Original Message-----
>From: typo3-english-bounces at lists.netfielders.de
>[mailto:typo3-english-bounces at lists.netfielders.de] On Behalf Of Ries
>van Twisk
>Sent: Monday, February 14, 2005 2:51 PM
>To: TYPO3 English
>Subject: Re: [Typo3] TV & Tip-a-Friend Plugin
>
>Taylor, Jeff wrote:
>
>
>
>>Has anyone gotten the tip-a-friend plugin working with TV. I'm
>>perfectly able to map the "email to friend" link to point to the proper
>>page.
>>However I have tried a number of options for the Template setup code
>>with no success. If not, are there any viable alternatives to the tip
>>
>>
>a
>
>
>>friend plugin?
>>
>>>From what I understand, the actual tip a friend template is not being
>>included in the page...
>>
>>
>>Any help would be appreciated.
>>
>>
>>
>>The tipafriend page has the code TIPLINK
>>This is what I (currently) have in the template setup.
>>I have played with this excessively to no avail.
>>
>>
>>
>>includeLibs.ts_tipafriend = EXT:tipafriend/pi/class.tx_tipafriend.php
>>
>>plugin.tipafriend >
>>plugin.tipafriend = USER
>>plugin.tipafriend {
>> userFunc = tx_tipafriend->main_tipafriend
>> code.field = TIPLINK
>>
>> templateFile = files/template/tipafriend/tipafriend_template.html
>> tipolink.parameter = 116 500x350 #uid of the Tip Form page
>> htmlmail = {$plugin.tipafriend.htmlMail}
>>
>>}
>>
>>
>>
>>Jeff,
>>
>>this is what I use in my TV setup:
>>
>>temp.tipafriend = USER
>>temp.tipafriend {
>> userFunc = tx_tipafriend->main_tipafriend
>> code = TIPLINK
>> templateFile = {$plugin.tipafriend.file.templateFile}
>> typolink.parameter = 100997 # uid of the TipForm page
>>}
>>
>>lib.tipafriend = TEXT
>>lib.tipafriend < temp.tipafriend
>>
>>Works on: http://www.livetravelguides.com
>>
>>cheers,
>>Ries
>>
>>
>>
>
>Thanks for your quick response and help...
>However, it still isn't working properly.
>Where are you setting $plugin.tipafriend.file.templateFile ?
>Does your template mirror the template example included with the plugin?
>Does anything else need to be set on the plugin page content besides the
>CODE?
>
>The first thing I noticed with this setup is that lib.tipafriend doesn't
>get set to the proper URL and just points at my server root in my actual
>html output, so the "email to friend" link doesn't even point to the tip
>a friend page.
>Is that the only setup you need in the master template?
>
>
>(here's what I have for my lib.tipafriend)
>
>lib.tipafriend = TEXT
>
>lib.tipafriend.value =
>index.php?id=tipafriend&tipUrl=http://sitename/?{page:uid}&no_cache=1
>
>lib.tipafriend.htmlSpecialChars = 1
>lib.tipafriend.insertData = 1
>
>with that the link to tip a friend works on every page but once to the
>plugin page there is just no output from the plugin.
>
>Sorry if this is vague, I'm not feeling well.
>
>Thanks again for the help.
>
>.jeff.
>
>_______________________________________________
>Typo3-english mailing list
>Typo3-english at lists.netfielders.de
>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
>
Jeff,
I do set $plugin.tipafriend.file.templateFile in my constants like this
: plugin.tipafriend.file.templateFile =
fileadmin/ltg_templates/tipafriend.tmpl
Jeff, currently you don't insert any plugin into lib.tipafriend,
you need something like this:
lib.tipafriend = TEXT
lib.tipafriend < temp.tipafriend # <= This is the importend part....
the extention tipafriend will then take care of the rest, insert the link etc. etc.
cheers,
Ries
--
R. van Twisk
http://www.metamorf.net
Our Typo3 enabled website: http://www.livetravelguides.com
Instand help for Typo3? irc:/irc.freenode.net/typo3
Looking for documentation? http://typo3.org/documentation/
More information about the TYPO3-english
mailing list