[TYPO3-english] Content showing inside div element problem
Toni Andric
toni.andric at openit.hr
Wed Apr 25 17:31:35 CEST 2012
> Message: 1
> Date: Wed, 25 Apr 2012 15:37:06 +0200
> From: Loek Hilgersom<loek at netcoop.nl>
> Subject: Re: [TYPO3-english] Content showing inside div element
> problem
> To: typo3-english at lists.typo3.org
> Message-ID:<mailman.1.1335361026.1742.typo3-english at lists.typo3.org>
> Content-Type: text/plain; charset=ISO-8859-1; format=flowed
>
> ... and Victor is right, that should be
> 10.wrap =<div class="box col2">|</div>
> if you use that multiple times on one page.
>
> Loek
>
>
> On 04/25/2012 03:19 PM, Loek Hilgersom wrote:
>
>> 10.wrap =<div id="box col2">|</div>
>
>
> ------------------------------
>
>> 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>
> }
> }
>
>
>
Hey, i know about <div id/class> it was a typing mistake. I tryed a lot
of things, read a lot of posts but cant get it working. Maybe litle
illustration will help.
This is what i get
<-- 960px div id="container" -->
<div class="box">
Record #1
------------
Record #2
------------
Record #3
------------
etc.
</div>
What i need is this:
<-- 960px div div id="container" -->
<div class="box"><div class="box"><div class="box"><div class="box">
Record #1 Record #2 Record #3 Record #4
</div> </div> </div> </div>
There will be over 40 boxes on page. I need TS that takes any content i
put on PID in BE, but lets say colPos = 1 and places it in a new box
with same <div class="box col2>.
I am aware i can put 4 different div's and connect em to get, getLeft,
getRight, getBorder but that isnt gonna work cause i need every content
in <div class="box col2"> for it to work.
Thx
--
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
--
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