[Typo3] header displayed twice but only in textpic
Stephan Gruber
mail at stephan-gruber.de
Wed Aug 17 09:01:27 CEST 2005
Hi list,
I have a problem with the headers in textpic, but only if the position of
the image is NOT 'in text left/right'. I'm using Ver. 3.8.0 on WinXP.
The output looks like this:
-----------------------------------------------------------------------
HEADLINE
<div class="content">
<table width="111" border="0" cellspacing="0" cellpadding="0"
align="right" class="imgtext-table">
<tr>
<td rowspan="2" valign="top"><img src="clear.gif" width="10"
height="1" alt="" title="" /></td>
<td colspan="1"><img src="clear.gif" width="100" height="1"
alt="" /></td>
</tr>
<tr>
<td valign="top"><img src="typo3temp/pics/f157f5c6d8.jpg"
width="100" height="74" border="0" align="top" alt="" title=""
/><br /></td>
</tr>
</table>
<h1>HEADLINE</h1>
<p>Here is some text</p>
</div>
-----------------------------------------------------------------------
The headers are displayed twice and the 1st one is not wrapped.
My TS looks like this:
-----------------------------------------------------------------------
page = PAGE
page.stylesheet = fileadmin/styles/styles.css
page.bodyTag = <body leftmargin="0" topmargin="0" rightmargin="0"
bottommargin="0" marginwidth="0" marginheight="0">
page.10 = TEMPLATE
page.10.template = FILE
page.10.template.file = fileadmin/html-templates/default.tmpl
page.10.marks.TEASER < styles.content.getLeft
page.10.marks.CONTENT < styles.content.get
# getting rid of clear.gif befor and after content
tt_content.stdWrap.space = 0|0
# getting rid of clear.gif befor and after headlines
lib.stdheader.stdWrap.space = 0|0
##### format depending on col
# backup original
temp_text < tt_content.text
# clearing original object
tt_content.text >
# put a CASE object in original place
tt_content.text = CASE
# Select over colPos
tt_content.text.key.field = colPos
# copy original object to default position
tt_content.text.default < temp_text
tt_content.text.default{
10.stdWrap.space = 0|0
20.parseFunc{
nonTypoTagStdWrap.encapsLines.addAttributes.P >
}
}
# copy for colPos 1 Left Column
tt_content.text.1 < tt_content.text.default
tt_content.text.1.stdWrap.wrap = <div class="teaser">|</div>
tt_content.text.1.10.wrap = <h2>|</h2>
# copy for colPos 0 Middle Column
tt_content.text.0 < tt_content.text.default
tt_content.text.0.stdWrap.wrap = <div class="content">|</div>
tt_content.text.0.10.wrap = <h1>|</h1>
#backup the original object
temp_imgtext < tt_content.textpic.20
#clear the original object
tt_content.textpic.20 >
#put a CASE object in the original place
tt_content.textpic.20 = CASE
#select over colPos
tt_content.textpic.20.key.field = colPos
#copy original object to default position
tt_content.textpic.20.default < temp_imgtext
#set width of default
tt_content.textpic.20.default.maxW = 200
#copy for colPos = 1 and set width again
tt_content.textpic.20.1 < tt_content.textpic.20.default
tt_content.textpic.20.1.stdWrap.wrap = <div class="teaser">|</div>
tt_content.textpic.20.1.maxW = 60
tt_content.textpic.20.1.maxWInText = 60
tt_content.textpic.20.1.text < tt_content.text.1
tt_content.textpic.20.1.text.stdWrap >
#copy for colPos = 0 and set width again
tt_content.textpic.20.0 < tt_content.textpic.20.default
tt_content.textpic.20.0.stdWrap.wrap = <div class="content">|</div>
tt_content.textpic.20.0.maxW = 100
tt_content.textpic.20.0.maxWInText = 100
tt_content.textpic.20.0.text < tt_content.text.0
-----------------------------------------------------------------------
Thanks for your time and suggestions.
Stephan
--
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.338 / Virus Database: 267.10.10/73 - Release Date: 15.08.2005
More information about the TYPO3-english
mailing list