[TYPO3-UG Dutch] waarom komt de datum en titel niet waar ik het gemapt heb.

Roelof Wobben rwobben at hotmail.com
Mon Mar 26 17:02:49 CEST 2007


Hoi,

ik heb deze html template gebruikt voor het mappen.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>Untitled Document</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
<link href="stylesheet.css" rel="stylesheet" type="text/css">
</head>
<body>
<table border="0" align="center" cellpadding="0" cellspacing="0" 
id="container">
  <tr>
    <td><img src="header.jpg" width="750" height="355"></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">Hier komt de 
paginatitel</td>
          <td width="130" valign="bottom" id="date">20-03-2007</td>
        </tr>
        <tr>
          <td rowspan="2" valign="top" id="menu"><a href="#">Menu item 
nummer 1</a> <br>
            <a href="#">Menu item nummer 2</a><br>
            <a href="#">Menu item nummer 3</a></td>
          <td height="277" colspan="2" valign="top" id="content"><p>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 &#8217;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>
            <p>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 &#8217;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. 
Hoera, het is zover, eindelijk zwanger. De test laat niets te twijfelen 
over. </p>
            <p>&nbsp;</p>
            <p><strong>Download <a 
href="../tamarawobben.zip">tamarawobben.zip</a></strong></p>
            <p>&nbsp;</p>
          </td>
        </tr>
        <tr>
          <td colspan="2" valign="top" id="nav"><a href="#"><< vorige</a> <a 
href="#">volgende >></a></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>
</body>

NU heb ik de volgende template gemaakt :

lib.titel = TEXT
lib.titel.field = TITLE
lib.titel.insertData = 1


lib.datum = TEXT
lib.datum.field = date
lib.datum.strftime = %A, %d %B %Y
lib.datum.wrap = <td width="163" valign="bottom" id="date"></td>
lib.datum.if.isTrue.field = date


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>lib.zmenu</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>
					<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>plugin.tx_cagpagebrowser</TypoScriptObjPath>
				</tx_templavoila>
			</field_besturing>
		</el>
	<field_pagebrowser type="array">
                  <tx_templavoila type="array">
                      <title>Pagebrowser</title>
                      <description>Map this to the place you want the
pagebrowser to be</description>
                      <sample_data type="array">
                          <numIndex index="0"></numIndex>
                      </sample_data>
                      <eType>TypoScriptObject</eType>
                     <eType_EXTRA type="array">
                          <objPath>plugin.tx_cagpagebrowser</objPath>
                      </eType_EXTRA>

<TypoScriptObjPath>plugin.tx_cagpagebrowser</TypoScriptObjPath>
                  </tx_templavoila>
              </field_pagebrowser>

	</ROOT>
</T3DataStructure>

Maar als ik nu de pagina wil bekijken , ziet het als volgt uit :

<!DOCTYPE html
	PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />

<!--
	This website is powered by TYPO3 - inspiring people to share!
	TYPO3 is a free open source Content Management Framework initially created 
by Kasper Skaarhoj and licensed under GNU/GPL.
	TYPO3 is copyright 1998-2006 of Kasper Skaarhoj. Extensions are copyright 
of their respective owners.
	Information and contribution at http://typo3.com/ and http://typo3.org/
-->

	<link rel="stylesheet" type="text/css" 
href="typo3temp/stylesheet_fa89aefcd9.css" />
	<title>zwanger ??</title>
	<meta name="generator" content="TYPO3 4.1 CMS" />
	<script type="text/javascript" 
src="typo3temp/javascript_757c080409.js"></script>
<script type="text/javascript" 
src="typo3conf/ext/foldoutmenu/foldout.js"></script>

<link href="fileadmin/template/tamara/stylesheet.css" rel="stylesheet" 
type="text/css" />

</head>
<body>

<table border="0" align="center" cellpadding="0" cellspacing="0" 
id="container">
  <tr>
    <td><img src="fileadmin/template/tamara/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="163" height="29" valign="top">&nbsp;</td>
          <td width="425" align="center" valign="bottom" id="title"></td>
          <td width="163" valign="bottom" id="date"></td>
        </tr>
        <tr>
          <td rowspan="2" valign="top" id="menu"><div id="menuz"><ul><li><a 
href="index.php?id=3" onfocus="blurLink(this);"  class="no"><img 
src="clear.gif" width="9" height="1" border="0" alt="" title="" 
/>home</a></li><li><A href="javascript:;" 
onmousedown="zmenu.foldMenu('zmenu-4');return false;" style="cursor: 
pointer;cursor: hand;" class="no"><img 
src="typo3conf/ext/foldoutmenu/examples/vertical/images/arrow_down.gif" 
width="9" height="9" border="0" align="top" id="zmenu-4-0" alt="Click to 
close" title="Click to close" />Zwangerschap</a><ul id="zmenu-4"><li><a 
href="index.php?id=5" onfocus="blurLink(this);"  class="no"><img 
src="clear.gif" width="9" height="1" border="0" alt="" title="" />Februari 
2005</a></li><li><a href="index.php?id=9" onfocus="blurLink(this);"  
class="no"><img src="clear.gif" width="9" height="1" border="0" alt="" 
title="" />Maart 2005</a></li></ul></li></ul></div>
				<script language="JavaScript" type="text/javascript">
				/*<![CDATA[*/
				<!--
				zmenu=new initFoldMenu();
				zmenu.prefix = 'zmenu';
				zmenu.autoFold = 1;
				zmenu.startFolded = 1;
				zmenu.foldCurrent = 1;
				zmenu.enableCookie = 1;
				zmenu.imagePath = 'typo3conf/ext/foldoutmenu/examples/vertical/images/';
				zmenu.imageSwap = new Array(["arrow_right.gif","arrow_down.gif"]);
				zmenu.altSwap = new Array(["Click to open","Click to close"]);

				zmenu.setMenu("4");
				// -->
				/*]]>*/
				</script></td>
          <td height="277" colspan="2" valign="top" 
id="content"><!--TYPO3SEARCH_begin-->
	<!--  CONTENT ELEMENT, uid:3/text [begin] -->
		<a id="c3"></a>
		<!--  Header: [begin] -->
			<div class="csc-header csc-header-n1">
		<!--  Header date: [begin] -->
			<p class="csc-header-date">01/02 2005</p>
		<!--  Header date: [end] -->
			<h1 class="csc-firstHeader">Zwanger ?</h1></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:3/text [end] -->
		<!--TYPO3SEARCH_end--></td>
        </tr>
        <tr>
          <td colspan="2" valign="top" id="nav"></td>
        </tr>
        <tr>
          <td colspan="3" align="center" valign="top" id="footer">(c) 2007 
R. Wobben. Deze layout is gemaakt door Argosmedia </td>
        </tr>
      </table>
    </td>
  </tr>
</table>

Zoals jullie zien, komen de titel en datum op een andere plaats dan waar ik 
ze hebt gemapt.
De titel komt opeens in een csc-header en de datum in een csc-header-date in 
plaats van hun <td>

Kan iemand me als u blieft vertellen wat er hier verkeerd gaat.

Groetjes,

Roelof

_________________________________________________________________
Geen zin in typen? Praten gaat makkelijker. Nu GRATIS bellen! 
http://get.live.com/messenger/overview



More information about the TYPO3-UG-dutch mailing list