[TYPO3-templavoila] use pagecontent:header in TypoScript Object Path
Styrmir Magnússon
styrmirm at hive.is
Thu Jan 3 03:07:46 CET 2008
Hi Dmitry
And Thanks for helping, I hope I am a little bit closer, but still I am
not able to show the header from the content element
Here is my DS
<field_content type="array">
<tx_templavoila type="array">
<title>Main Content Area</title>
<description>Pick the HTML element in the template where you want
to place the main content of the site.</description>
<sample_data type="array">
<numIndex index="0">Lorem ipsum dolor sit amet, consectetuer
adipiscing elit. Pellentesque porta erat vitae nisl. </numIndex>
</sample_data>
<eType>ce</eType>
<tags>table:outer,td:inner,div:inner,p,h1,h2,h3,h4,h5</tags>
<oldStyleColumnNumber type="integer">0</oldStyleColumnNumber>
<TypoScript><![CDATA[
10= RECORDS
10.source.current=1
10.tables = tt_content
10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
20 = TEXT
20.data = register:tx_templavoila_pi1.parentRec.header
20.wrap = Header result |
]]></TypoScript>
</tx_templavoila>
<TCEforms type="array">
<config type="array">
<type>group</type> <internal_type>db</internal_type>
<allowed>tt_content</allowed>
<size>5</size>
<maxitems>200</maxitems>
<minitems>0</minitems>
<multiple>1</multiple> <show_thumbs>1</show_thumbs>
</config>
<label>Main Content Area</label>
</TCEforms>
</field_content>
And thene there is the header
<field_header type="array">
<tx_templavoila type="array">
<title>Header of content</title>
<description>Pick the HTML container element where you want the
automatically made header to be placed.</description>
<sample_data type="array">
<numIndex index="0">[Header goes here]</numIndex>
</sample_data>
<eType>TypoScriptObject</eType>
<tags>table:inner,ul,div,tr,td,span</tags>
<TypoScriptObjPath>lib.header</TypoScriptObjPath>
</tx_templavoila>
</field_header>
I have also tried to the typoscript inside field_header and skipping it
from field_content
<TypoScript>
10 = TEXT
10.data = register:tx_templavoila_pi1.parentRec.header
10.wrap = Header result |
</TypoScript>
Best Regards
Styrmir Magnússon
Dmitry Dulepov [typo3] wrote:
> Hi!
>
> Styrmir Magnússon wrote:
>> I have a "Content Area" and there I create new element, "Regular Text
>> Element" in this Element there is "Header" and then there is "Text". I
>> chose to have the header hidden.
>>
>> What I want to do is to show the header of this element I created
>> before in a "Title Area" which is another area I created with TemplaVoila
>
> So you want to show a header of content element inside FCE? Manual has
> an example of something similar. There is a register that you should use
> inside FCE's TypoScript.
>
More information about the TYPO3-project-templavoila
mailing list