[TYPO3-UG Dutch] kan titel en datum ook uit het content gedeelte gehaald worden ?

Roelof Wobben rwobben at hotmail.com
Sun Apr 1 19:37:55 CEST 2007


Hoi,

Sorry maar het werkt niet goed.

Ik heb nu deze TS :

lib.stdheader {

# 1st we delete the original date object, which is placed before the header
5 >
# next we delete the original header type 1 object,
10.1 >
# and then create a new one.
10.1 = COA
10.1 {
  # 1st we output the title
  10 = TEXT
  10.current = 1
  10.insertData = 1
  10.fontTag = <h1{register:headerStyle}{register:headerClass}>|</h1>

  # 2rd we format and output the date of the content element
  20 = TEXT
  20.field = date
  20.strftime = %A, %d %B %Y
  # More info on "strftime" formatting can be found here:
http://typo3.org/documentation/document-library/references/doc_core_tsref/4.0.0/view/2/2/
  20.wrap = <div>Date:&nbsp;|</div>
  20.if.isTrue.field = date
}
}

lib.titel < lib.stdheader.10
lib.datum < lib.stdheader.20

page = PAGE
page.typeNum = 0
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page

en mijn DS ziet er als volgt uit :

<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<T3DataStructure>
	<meta type="array">
		<langDisable>1</langDisable>
	</meta>
	<ROOT type="array">
		<tx_templavoila type="array">
			<title>ROOT</title>
			<description>Select the HTML element on the page which you want to be the 
overall container element for the template.</description>
		</tx_templavoila>
		<type>array</type>
		<el type="array">
			<field_menu type="array">
				<tx_templavoila type="array">
					<title>menu</title>
					<description>menu</description>
					<sample_data type="array">
						<numIndex index="0">menu</numIndex>
					</sample_data>
					<eType>TypoScriptObject</eType>
					<tags>*:inner</tags>
					<TypoScriptObjPath></TypoScriptObjPath>
				</tx_templavoila>
			</field_menu>
			<field_titel type="array">
				<tx_templavoila type="array">
					<title>titel</title>
					<description>titel</description>
					<sample_data type="array">
						<numIndex index="0">titel</numIndex>
					</sample_data>
					<eType>TypoScriptObject</eType>
					<TypoScriptObjPath>lib.titel</TypoScriptObjPath>
				</tx_templavoila>
			</field_titel>
			<field_datum type="array">
				<tx_templavoila type="array">
					<title>datum</title>
					<description>datum</description>
					<sample_data type="array">
						<numIndex index="0">datum</numIndex>
					</sample_data>
					<eType>TypoScriptObject</eType>
					<TypoScriptObjPath>lib.datum</TypoScriptObjPath>
				</tx_templavoila>
			</field_datum>
			<field_content type="array">
				<tx_templavoila type="array">
					<title>content</title>
					<description>content</description>
					<sample_data type="array">
						<numIndex index="0">content</numIndex>
					</sample_data>
					<eType>ce</eType>
					<eType_EXTRA type="array">
						<objPath>lib.myObject</objPath>
					</eType_EXTRA>
					<TypoScript><![CDATA[
	10= RECORDS
	10.source.current=1
	10.tables = tt_content
	10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
                    ]]></TypoScript>
					<oldStyleColumnNumber type="integer">0</oldStyleColumnNumber>
				</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>content</label>
				</TCEforms>
			</field_content>
			<field_besturing type="array">
				<tx_templavoila type="array">
					<title>besturing</title>
					<description>besturing</description>
					<sample_data type="array">
						<numIndex index="0">besturing</numIndex>
					</sample_data>
					<eType>TypoScriptObject</eType>
					<TypoScriptObjPath></TypoScriptObjPath>
				</tx_templavoila>
			</field_besturing>
		</el>
	</ROOT>
</T3DataStructure>

Wat gaat er fout want mijn output file blijft :

<table border="0" align="center" cellpadding="0" cellspacing="0" 
id="container">
  <tr>
    <td><img src="fileadmin/template/tamara/images/header.jpg" width="750" 
height="355" alt="" /></td>
  </tr>
  <tr>
    <td height="458" valign="top">
        <table width="100%" border="0" cellpadding="0" cellspacing="0" 
id="container2">
        <tr>
          <td width="195" height="29" valign="top">&nbsp;</td>
          <td width="425" valign="bottom" id="title"><h1></h1></td>
          <td width="130" valign="bottom" id="date"></td>
        </tr>
        <tr>
          <td rowspan="2" valign="top" id="menu"></td>
          <td height="277" colspan="2" valign="top" 
id="content"><!--TYPO3SEARCH_begin-->
	<!--  CONTENT ELEMENT, uid:1/text [begin] -->
		<a id="c1"></a>
		<!--  Header: [begin] -->
			<div class="csc-header csc-header-n1"><h1 class="csc-firstHeader">Zwanger 
??</h1><div>Date:&nbsp;Saturday, 05 February 2005</div></div>
		<!--  Header: [end] -->

		<!--  Text: [begin] -->
			<p class="bodytext">Hoera, het is zover, eindelijk zwanger. De test laat 
niets te twijfelen over. Ik ben net een stuiterbal, blij en energie voor 
tien. Ondanks het prille begin, heb ik een goed gevoel over deze 
zwangerschap. Waarom? geen idee. Het voelt gewoon goed. Het is moeilijk om 
’s middags mijn mond dicht te houden als ik met mijn zus in de stad ben. Het 
is maar goed dat er een carnavalsoptocht is, het geeft een beetje afleiding. 
</p>
		<!--  Text: [end] -->

	<!--  CONTENT ELEMENT, uid:1/text [end] -->
		<!--TYPO3SEARCH_end--></td>
        </tr>
        <tr>
          <td colspan="2" valign="top" id="nav"></td>
        </tr>
        <tr>
          <td colspan="3" valign="top" id="footer">(c) 2007 R. Wobben. Deze 
layout is gemaakt door Argosmedia </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

Zoals je ziet . blijft de header in het content gedeelte ?

Groetjes,

Roelof




>From: Daniel Doesburg <daniel at typo3-nl.eu>
>Reply-To: TYPO3 Usergroup Dutch <typo3-ug-dutch at lists.netfielders.de>
>To: typo3-ug-dutch at lists.netfielders.de
>Subject: Re: [TYPO3-UG Dutch] kan titel en datum ook uit het content 
>gedeelte gehaald worden ?
>Date: Sun, 01 Apr 2007 15:18:07 +0200
>
>Hoi Roelof.
>
>Rest alleen nog:
>
>lib.titel < lib.stdheader.10
>lib.datum < lib.stdheader.20
>
>onder het stukje TS toe te voegen als koppeling tussen téén en tander.
>
>Succes.
>
>
>Met vriendelijke groeten,
>
>Daniel Doesburg
>
>_______________________________________________
>TYPO3-UG-dutch mailing list
>TYPO3-UG-dutch at lists.netfielders.de
>http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-dutch

_________________________________________________________________
Windows Live Mail: Slim - Persoonlijk - Betrouwbaar en GRATIS! 
http://get.live.com/mail/overview



More information about the TYPO3-UG-dutch mailing list