[TYPO3-UG Dutch] Kan door gifbuilder gegenereerde banner niet in pagina getoond krijgen
johann at quicknet.nl
johann at quicknet.nl
Wed Aug 16 12:41:39 CEST 2006
Hallo allemaal,
Ik loop tegen iets aan waar ik niet helemaal uitkom; een door GIFBUILDER gegenereerde banner krijg ik niet in de pagina.
Op mijn server draait Typo3 4.0 en aan alle requirements is voldaan.
Setup 1 genereert de banner precies zoals ik dat wil met de paginatitel erop, echter het probleem is dat alleen de banner getoond wordt en niet de rest van de pagina. Terwijl Setup 2 de pagina genereert maar dan zonder de topbanner. Het is mij een compleet raadsel hoe dit komt. In mijn TemplaVoila Data Structure (zie hieronder) heb ik de td-tag van de cel waar de banner moet komen, gemapt met het element lib.topBanner (<objPath>lib.topBanner</objPath>).
Ik heb al een hoop geprobeerd (met hulp van Google :-) maar zonder het gewenste resultaat, het vreemde is dat de voorbeeld-content die door de Templa Voila Wizard wordt gegenereerd, wel in de pagina verschijnt. Mijn vermoeden is dat er iets in de Data Structure aangepast moet worden, kent iemand dit verschijnsel en beter nog hoe het is op te lossen?
Bij voorbaat dank voor de hulp!
Groeten,
Johann
Setup 1:
-----------------------------------------------------------------
config.spamProtectEmailAddresses = 1
page = PAGE
page.typeNum = 0
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page
page.10 = IMAGE
page.10.file = GIFBUILDER
page.10.file {
XY = 623, [10.h]
10 = IMAGE
10.file = fileadmin/templates/images/lelepi_top.gif
10.file.width= 623
20 = TEXT
20.text.field = title
20.offset = 50,50
20.niceText = 1
20.align = left
20.fontSize = 40
20.fontFile = fileadmin/templates/fonts/Curlz.TTF
20.fontColor = white
}
Setup 2:
--------------------------------------------------------------------
config.spamProtectEmailAddresses = 1
page = PAGE
page.typeNum = 0
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page
# Create topbanner with page title
lib.topBanner.10 = IMAGE
lib.topBanner.10.file = GIFBUILDER
lib.topBanner.10.file {
XY = 623,[10.h]
10 = IMAGE
10.file = fileadmin/templates/images/lelepi_top.gif
10.file.width = 623
20 = TEXT
20.text.field = title
20.offset = 50,50
20.niceText = 1
20.align = left
20.fontSize = 40
20.fontFile = fileadmin/templates/fonts/Curlz.TTF
20.fontColor = white
}
Data Structure XML:
-----------------------------------------------------------------------
<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<T3DataStructure>
<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>
<tags>body</tags>
</tx_templavoila>
<type>array</type>
<el type="array">
<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. In hac habitasse platea dictumst. Aliquam ac urna. Morbi magna mauris, semper ut, varius in, convallis vitae, nulla. Proin massa lorem, mollis eget, rutrum vitae, commodo id, risus. Curabitur scelerisque risus eget odio. Proin laoreet blandit elit. Aenean varius, sapien laoreet dapibus volutpat, risus lorem ornare wisi, lobortis venenatis nisl augue sed purus. Nam suscipit viverra justo. Suspendisse tincidunt. Nullam vel quam.</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>
10= RECORDS
10.source.current=1
10.tables = tt_content
10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
</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>
<field_menu type="array">
<tx_templavoila type="array">
<title>Main menu</title>
<description>Pick the HTML container element where you want the automatically made menu items to be placed.</description>
<sample_data type="array">
<numIndex index="0">[Menu goes here]</numIndex>
</sample_data>
<eType>TypoScriptObject</eType>
<tags>table:inner,ul,div,tr,td</tags>
<eType_EXTRA type="array">
<objPath>lib.mainMenu</objPath>
</eType_EXTRA>
<TypoScriptObjPath>lib.mainMenu</TypoScriptObjPath>
</tx_templavoila>
</field_menu>
<field_rightcol type="array">
<tx_templavoila type="array">
<title>Right Content Area</title>
<description>Pick the HTML element in the template where you want to place the right column content of the site.</description>
<sample_data type="array">
<numIndex index="0">[Right Column]</numIndex>
</sample_data>
<eType>ce</eType>
<TypoScript>
10= RECORDS
10.source.current=1
10.tables = tt_content
10.wrap = <!--TYPO3SEARCH_begin--> | <!--TYPO3SEARCH_end-->
</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>Right Content Area</label>
</TCEforms>
</field_rightcol>
<field_topbanner type="array">
<tx_templavoila type="array">
<title>Top Banner Object</title>
<description>Insert Typoscript for rendering a graphical banner in the template</description>
<sample_data type="array">
<numIndex index="0">[Graphical Banner Goes Here]</numIndex>
</sample_data>
<eType>TypoScriptObject</eType>
<eType_EXTRA type="array">
<objPath>lib.topBanner</objPath>
</eType_EXTRA>
<TypoScriptObjPath>lib.topBanner</TypoScriptObjPath>
</tx_templavoila>
</field_topbanner>
</el>
</ROOT>
</T3DataStructure>
More information about the TYPO3-UG-dutch
mailing list