0

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.

Charles Brunet
  • 21,797
  • 24
  • 83
  • 124
Simon Fredsted
  • 964
  • 2
  • 14
  • 26

2 Answers2

1

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.

Micromega
  • 12,486
  • 7
  • 35
  • 72
  • What is a template marker and content object? How do I map it? I'm new to Typo3. – Simon Fredsted Mar 07 '12 at 13:44
  • @Simon: Basically it's what Fedir said: TypoScript Objects Path with TemplaVoila. Template marker = HTML template / TV template – Micromega Mar 07 '12 at 13:46
  • Okay, so Template Marker is my HTML file I imported into TemplaVoila? – Simon Fredsted Mar 07 '12 at 13:50
  • @Simon When you create a template with TemplaVoila it is possible to define fields and to map them visually to elements in an html file. This mapping is what makes it possible to insert content on page generation. – James P. May 29 '12 at 12:12
1

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.

Fedir RYKHTIK
  • 9,844
  • 6
  • 58
  • 68