[TYPO3-UG Dutch] Nieuw template met templavoila: typoscript doet niets

Edwin Blokker a.stoutjesdijk at chello.nl
Fri Jun 15 19:50:34 CEST 2007


Ok, dat is het geval.. Hierbij wat code:

DS "layout2":
<?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_header type="array">
				<tx_templavoila type="array">
					<title>header</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>TypoScriptObject</eType>
					<TypoScriptObjPath>lib.head</TypoScriptObjPath>
				</tx_templavoila>
			</field_header>
			<field_hnav type="array">
				<tx_templavoila type="array">
					<title>hnav</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>TypoScriptObject</eType>
					<TypoScriptObjPath>lib.hnav</TypoScriptObjPath>
				</tx_templavoila>
			</field_hnav>
			<field_content type="array">
				<tx_templavoila type="array">
					<title>content</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>ce</eType>
					<TypoScript>
	10= RECORDS
	10.source.current=1
	10.tables = tt_content
	10.wrap = &lt;!--TYPO3SEARCH_begin--&gt; | &lt;!--TYPO3SEARCH_end--&gt;
                     </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_vnav type="array">
				<tx_templavoila type="array">
					<title>vnav</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>TypoScriptObject</eType>
					<TypoScriptObjPath>lib.vnav</TypoScriptObjPath>
				</tx_templavoila>
			</field_vnav>
			<field_kruimel type="array">
				<tx_templavoila type="array">
					<title>kruimel</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>TypoScriptObject</eType>
					<TypoScriptObjPath>lib.kruimel</TypoScriptObjPath>
				</tx_templavoila>
			</field_kruimel>
			<field_foot type="array">
				<tx_templavoila type="array">
					<title>foot</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>TypoScriptObject</eType>
					<TypoScriptObjPath>lib.foot</TypoScriptObjPath>
				</tx_templavoila>
			</field_foot>
			<field_leftcontent type="array">
				<tx_templavoila type="array">
					<title>left content</title>
					<sample_data type="array">
						<numIndex index="0"></numIndex>
					</sample_data>
					<eType>ce</eType>
					<TypoScript>
	10= RECORDS
	10.source.current=1
	10.tables = tt_content
	10.wrap = &lt;!--TYPO3SEARCH_begin--&gt; | &lt;!--TYPO3SEARCH_end--&gt;
                     </TypoScript>
					<oldStyleColumnNumber type="integer">1</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>left content</label>
				</TCEforms>
			</field_leftcontent>
		</el>
	</ROOT>
</T3DataStructure>


TYPOSCRIPT SETUP "layout2":
# Default PAGE object:
page = PAGE
page.typeNum = 0
page.relPathPrefix = fileadmin/templates
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page

# Header
lib.head = TEXT
lib.head.value = {$head}

# Hnav
lib.hnav = HMENU
lib.hnav {
10 = TMENU
10 {
wrap = <ul>|</ul>
# No
NO.ATagBeforeWrap = 1
NO.linkWrap = <span>|</span>
NO.allWrap = <li>|</li>
NO.stdWrap.htmlSpecialChars = 1
# Act
ACT = 1
ACT.ATagBeforeWrap = 1
ACT.linkWrap = <span>|</span>
ACT.allWrap = <li class="act">|</li>
ACT.htmlSpecialChars = 1
}

# Vnav
lib.vnav = COA
lib.vnav.10 = TEXT
lib.vnav.10 {
wrap = <div id="vnavtitle">|:</div>
data = leveltitle:1
}
lib.vnav.20 = HMENU
lib.vnav.20 {
entryLevel = 1
# 1st level
1 = TMENU
1 {
wrap = <ul id="vnav"> | </ul>
# No
NO.wrapItemAndSub = <li class="vl1no">|</li>
NO.stdWrap.htmlSpecialChars = 1
# Act
ACT = 1
ACT.stdWrap.htmlSpecialChars = 1
ACT.wrapItemAndSub = <li class="vl1act">|</li>
# IfSub
IFSUB = 1
IFSUB.stdWrap.htmlSpecialChars = 1
IFSUB.wrapItemAndSub = <li class="vl1nosub">|</li>
# ActIfSub
ACTIFSUB = 1
ACTIFSUB.stdWrap.htmlSpecialChars = 1
ACTIFSUB.wrapItemAndSub = <li class="vl1actsub">|</li>
# CurSub
CURIFSUB = 1
CURIFSUB.stdWrap.htmlSpecialChars = 1
CURIFSUB.wrapItemAndSub = <li class="vl1cursub">|</li>
}
# 2nd level
2 = TMENU
2.wrap = |
2 {
# No
NO.wrapItemAndSub = <ul class="vl2no"><li>|</li></ul>
NO.stdWrap.htmlSpecialChars = 1
# Act
ACT = 1
ACT.stdWrap.htmlSpecialChars = 1
ACT.wrapItemAndSub = <ul class="vl2act"><li>|</li></ul>
# IfSub
IFSUB = 1
IFSUB.stdWrap.htmlSpecialChars = 1
IFSUB.wrapItemAndSub = <ul class="vl2nosub"><li>|</li></ul>
# ActIfSub
ACTIFSUB = 1
ACTIFSUB.stdWrap.htmlSpecialChars = 1
ACTIFSUB.wrapItemAndSub = <ul class="vl2actsub"><li>|</li></ul>
# CurIfSub
CURIFSUB = 1
CURIFSUB.stdWrap.htmlSpecialChars = 1
CURIFSUB.wrapItemAndSub = <ul class="vl2cursub"><li>|</li></ul>
}
# 3th level
3 = TMENU
3.wrap = |
3 {
# No
NO.stdWrap.htmlSpecialChars = 1
NO.wrapItemAndSub = <ul class="vl3no"><li>|</li></ul>
# Act
ACT.stdWrap.htmlSpecialChars = 1
ACT.wrapItemAndSub = <ul class="vl3act"><li>|</li></ul>
}

# Kruimelpad
lib.kruimel = HMENU
lib.kruimel.includeNotInMenu = 1
lib.kruimel.special = rootline
lib.kruimel.1 = TMENU
lib.kruimel.1 {
wrap = <span class="kruimelspan">U bevindt zich hier:</span>|
NO.allWrap = |*| &nbsp; | &nbsp;<img src="arrowact.gif" alt="pijl" /> |*|
CUR = 1
CUR.allWrap = |*| <span class="kruimelspan">&nbsp;<em> | </em></span> |*|
CUR.doNotLinkIt = 1
}

# Footer
lib.foot = TEXT
lib.foot.value = {$foot}

Etc...




Bart Veldhuizen [V-INT] schreef:
> Nee, dat zou niet uit moeten maken. De Typoscript objecten die je in de 
> TemplaVoila template wilt gebruiken via het object path moeten dan 
> natuurlijk wel in het actieve template staan.
> 
> Bart
> 
> 
> Op 15-jun-2007, om 19:21 heeft Edwin Blokker het volgende geschreven:
> 
>> Hoi Bart, bedankt voor het meedenken!
>>
>> Uhm.. Voordat ik alle code post, wat bedoel je precies met templates
>> includen? Ik heb gewoon een nieuw typoscript template aangemaakt op de
>> root pagina en bij het oude template 'deactivated' aangevinkt.. Zit daar
>> het probleem?
>>
>>
>> Bart Veldhuizen [V-INT] schreef:
>>> Hi Edwin,
>>>
>>> post de betreffende XML en Typoscript eens? Dat maakt het wat
>>> makkelijker. Oh, enneh: je hebt de Typoscript templates toch wel
>>> ge-include he?
>>>
>>> Bart
>>>
>>> Op 15-jun-2007, om 18:37 heeft Edwin Blokker het volgende geschreven:
>>>
>>>> Beste lijst,
>>>>
>>>> Ik loop tegen het volgende probleem aan.
>>>>
>>>> De situatie:
>>>> Ik heb een nieuwe DS en TO aangemaakt, en een nieuwe template, ivm een
>>>> nieuwe layout. Alles is met behulp van TemplaVoila gemapped. De 
>>>> template
>>>> staat als root aangevinkt, de oude template staat op 'deactivate', 
>>>> en in
>>>> de rootpagina staan de nieuwe DS en TO geselecteerd.
>>>>
>>>> Het probleem:
>>>> Wanneer ik de pagina nu bekijk, krijg ik het nieuwe template te zien,
>>>> maar wordt er helemaal niets met de typoscript uit de template gedaan.
>>>> Alleen de statische html en de content elements worden gegenereerd:
>>>> alles wat gemapped is als 'typoscript object path' en dus door middel
>>>> van typoscript gegenereerd moet worden zoals de menu's, de header,
>>>> footer, etc., wordt gewoon niet aangemaakt.
>>>>
>>>> Waarschijnlijk zie ik iets simpels over het hoofd of ben ik een
>>>> essentiële stap vergeten, maar ik kom er echt niet uit. Iemand enig 
>>>> idee
>>>> wat er aan de hand is?
>>>>
>>>> Groeten,
>>>> Edwin.
>>>> _______________________________________________
>>>> TYPO3-UG-dutch mailing list
>>>> TYPO3-UG-dutch at lists.netfielders.de
>>>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-dutch
>>>>
>>>
>>> -------------------------------------------------------------------------- 
>>>
>>> Bart Veldhuizen, Veldhuizen Interactive.  Tel: 06-420 67 330
>>> website analyse & advies | content management systemen
>>>
>>>
>> _______________________________________________
>> TYPO3-UG-dutch mailing list
>> TYPO3-UG-dutch at lists.netfielders.de
>> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-ug-dutch
>>
> 
> --------------------------------------------------------------------------
> Bart Veldhuizen, Veldhuizen Interactive.  Tel: 06-420 67 330
> website analyse & advies | content management systemen
> 
> 


More information about the TYPO3-UG-dutch mailing list