Simon Fredsted
Simon Fredsted

Reputation: 976

TYPO3: Extensions in TemplaVoila template

I've installed a Twitter plugin from the Typo3 repository.

What would be the best way to insert a "variable" into my TemplaVoila template so I can place the twitter feed on my template? (I want it to be visible on every page)

I imagined inserting something like ###TWITTER### into my TemplaVoila template which Typo3 would replace with the twitter feed, instead of adding the plugin to every page.

Upvotes: 0

Views: 587

Answers (2)

Cybercartel
Cybercartel

Reputation: 12592

You can map your tv template marker with templavoila like usually. Then in your typoscript template you can create a content object with this twitter plugin and add it to your page object. I'm not sure how templavoila can help you?

Here is an example of a TS Object Path in TV:

    <field_toolmenu type="array">
     <tx_templavoila type="array">
    <title>Toolmenu</title>
    <description>mappt Toolmenu</description>
    <sample_data type="array">
         <numIndex index="0"></numIndex>
    </sample_data>
    <eType>TypoScriptObject</eType>
               <TypoScriptObjPath>lib.toolmenu</TypoScriptObjPath>
    </tx_templavoila>
</field_toolmenu>

lib.toolmenu is the obj path you can add a plugin or any ts content object (cObject) in your page template.

Upvotes: 1

Fedir RYKHTIK
Fedir RYKHTIK

Reputation: 9994

Use TypoScript Objects Path with TemplaVoiila.

You could define a TypoScript object lib.twitter which will contain Your plugin, and to map it after into TemplaVoila with BE module interface.

Upvotes: 1

Related Questions