[TYPO3-english] Content showing inside div element problem
Toni Andric
toni.andric at openit.hr
Wed Apr 25 16:03:35 CEST 2012
On 25.4.2012. 15:25, typo3-english-request at lists.typo3.org wrote:
> lib.contentRows = COA
> lib.contentRows {
> 10< styles.content.get
> 10.wrap =<div id="box col2">|</div>
> 10.select {
> begin = 1
> max = 4
> }
> 20< .10
> 20.select.begin = 5
> 30< .10
> 30.select.begin = 9
>
> .... etc.
>
> }
Hey thx for help but it didnt work.
Let me try to explain a little better
I have this in my TS setup:
subparts.SADRZAJ = CONTENT
subparts.SADRZAJ {
table = tt_content
select.pidInList = 20
select.orderBy = sorting
// select.where = colPos=0
wrap = <div class="box col2">|</div>
renderObj = COA
renderObj {
10 = TEXT
10.field = header
10.wrap = <h1 class="header">|</h1>
20 = TEXT
20.field = bodytext
20.wrap = <p class="body-text">|</p>
}
}
and this gives me exactly what i want BUT when i add new record on top
or below the existing it does not make new content element but just
expands the old one down.
I tryed the "split" option and it kinda helped, i get the same amount of
boxes in FE not even depending on left, normal, right, border cause of
commenting "select.where" and thats fine. What i need now is to get the
actual text and images from records/content in those boxes.
This is the code:
subparts.SADRZAJ = CONTENT
subparts.SADRZAJ {
table = tt_content
select.pidInList = 20
select.orderBy = sorting
// select.where = colPos=0
renderObj = COA
renderObj {
5 = CONTENT
5.split {
token.char = 10
cObjNum = 1
1.current = 1
1.wrap = <div id="box col2">|</div>
}
5.wrap = <div class="box col2">|</div>
}
}
--
Toni Andric
Open IT d.o.o.
Splitska 26
47000 Karlovac
Tel: +385(0)47 493 413
GSM: +385(0)91 406 2566
E-mail: toni.andric at openit.hr
http://www.openit.hr
More information about the TYPO3-english
mailing list