[Typo3] TemplaVoila and TypoScriptObjects
David Rosenkranz
david.rosenkranz at detewe.ch
Wed Oct 26 15:54:07 CEST 2005
Hi there,
I am a newbie to Typo3 and found that TemplaVoila would fit my needs best
when creating templates. Now I have a (probably) very simple question: At
the very top of my template I defined a content field which should be used
to display the page title. Here is the XML code snippet from the DS
definition:
...
<field_pageheadline type="array">
<tx_templavoila type="array">
<title>Page headline</title>
<description>Map this to the HTML element containing the page
headline</description>
<sample_data type="array">
<numIndex index="0">[MY PAGE HEADLINE]</numIndex>
</sample_data>
<eType>TypoScriptObject</eType>
<TypoScriptObjPath>lib.pageheadline</TypoScriptObjPath>
</tx_templavoila>
</field_pageheadline>
...
Then I added the following lines to the TypoScript setup of the template:
lib.pageheadline = TEXT
lib.pageheadline.value = HELLO WORLD
As you would expect the rendered pages now show "HELLO WORLD" in the page
title area. So far so good. But now I want to the actual page title to be
shown instead of "HELLO WORLD". For that I replaced the line:
lib.pageheadline.value = HELLO WORLD
with
lib.pageheadline.field = title
...just as it was shown in the MTB/1 tutorial. But now does not work. The
page title areas of the rendered pages remain empty.
Now the question: What do I do wrong? What would be the solution? Can I read
it somewhere?
Thanks a lot.
Mit freundlichen Gruessen /
Kind regards
David Rosenkranz
Switzerland
More information about the TYPO3-english
mailing list