TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv

TYPO3 Mailingliste: nicht fragen - lesen!

TYPO3 Mailingliste: nicht fragen - lesen!_RR_1-->
Zurück   TYPO3Jack.net - Das TYPO3 Mailinglist Forum Archiv > TYPO3-Mailinglists: ENGLISH > typo3-english@lists.netfielders.de

Registrieren Hilfe Benutzerliste Kalender Suchen Heutige Beiträge Alle Foren als gelesen markieren
  #1  
Alt 08.10.2007, 14:23
Tapio Markula
Gast
 
Beiträge: n/a
Standard [TYPO3] Different wrap for last content in content area

Hi

Is there some generic split, which could be used for content wrap like
option split for menu.

tt_content.text.20.dataWrap = <div class="basicText">|</div>

the last should be different.
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #2  
Alt 08.10.2007, 14:35
Øyvind Frøland - UniWeb AS
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Different wrap for last content in content area

Dear Tapio,

Try the following oneliner:

tt_content.text.20.dataWrap = <div class="first">|</div> |*| <div
class="middle">|</div> |*| <div class="last">|</div>


Best regards

Øyvind Frøland


Tapio Markula skrev:
> Hi
>
> Is there some generic split, which could be used for content wrap like
> option split for menu.
>
> tt_content.text.20.dataWrap = <div class="basicText">|</div>
>
> the last should be different.
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english (AT) lists (DOT) netfielders.de
> http://lists.netfielders.de/cgi-bin/.../typo3-english

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #3  
Alt 08.10.2007, 15:44
Tapio Markula
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Different wrap for last content in content area

Øyvind Frøland - UniWeb AS kirjoitti:
> Dear Tapio,
>
> Try the following oneliner:
>
> tt_content.text.20.dataWrap = <div class="first">|</div> |*| <div
> class="middle">|</div> |*| <div class="last">|</div>


seems not to work - this either


# renedring definitions on a per column basis
temp.customRender = CASE
temp.customRender {
key.field = colPos
default < tt_content
1 < tt_content
2 < tt_content
3 < tt_content

2.text.stdWrap.dataWrap= <div style="border:1px solid red;">|</div>
}

trie to set for 0 and 1 different wrap.
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #4  
Alt 10.10.2007, 11:19
Tapio Markula
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Different wrap for last content in content area

Tapio Markula kirjoitti:
> Øyvind Frøland - UniWeb AS kirjoitti:
>> Dear Tapio,
>>
>> Try the following oneliner:
>>
>> tt_content.text.20.dataWrap = <div class="first">|</div> |*| <div
>> class="middle">|</div> |*| <div class="last">|</div>

>
> seems not to work - this either


is there some splitter (needs to work with Typo3 3.8.1)
and how to apply here

Tried this


tt_content.text.20.dataWrap = <div class="basicText">|</div>

/*
tt_content.text.20.dataWrap.split {
token = ###SPLITTER###
cObjNum = 1||2|*||*|3||4
1.current = 1
1.wrap = <div class="basicText">|<br class="none" /></div>
2.current = 1
2.wrap = <div class="basicText">|<br class="none" /></div>
3.current = 1
3.wrap = <div class="basicText">|<br class="none" /></div>
4.current = 1
}
*/

temp.customRender = CASE
temp.customRender {
key.field = colPos
default < tt_content
0 < tt_content
1 < tt_content
4 < tt_content
0.text.stdWrap.dataWrap = <div class="basicText">|<br class="none"
/></div>
/*
0.text.stdWrap.dataWrap.split {
token = ###SPLITTER###
cObjNum = 1||2|*||*|3||4
1.current = 1
1.wrap = <div class="basicText">|<br class="none" /></div>
2.current = 1
2.wrap = <div class="basicText">|<br class="none" /></div>
3.current = 1
3.wrap = <div class="basicTextLast">|<br class="none" /></div>
4.current = 1
}
*/
1.text.stdWrap.dataWrap = <div class="basicText">|<br class="none"
/></div>
}

[PIDinRootline =1570,1572,1574]
tt_content >
tt_content < temp.customRender
#tt_content.text.20.dataWrap = <div class="basicText">|<br class="none"
/></div>
/*
tt_content.text.20.dataWrap.split {
token = ###SPLITTER###
cObjNum = 1||2|*||*|3||4
1.current = 1
1.wrap = <div class="basicText">|<br class="none" /></div>
2.current = 1
2.wrap = <div class="basicText">|<br class="none" /></div>
3.current = 1
3.wrap = <div class="basicTextLast">|<br class="none" /></div>
4.current = 1
}
*/
[end]

not succeeded
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #5  
Alt 10.10.2007, 13:27
JoH
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Different wrap for last content in content area

_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #6  
Alt 10.10.2007, 18:41
Tapio Markula
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Different wrap for last content in content area

JoH kirjoitti:
>>> Øyvind Frøland - UniWeb AS kirjoitti:
>>>> Dear Tapio,
>>>>
>>>> Try the following oneliner:
>>>>
>>>> tt_content.text.20.dataWrap = <div class="first">|</div> |*| <div
>>>> class="middle">|</div> |*| <div class="last">|</div>
>>> seems not to work - this either

>> is there some splitter (needs to work with Typo3 3.8.1)
>> and how to apply here
>>
>> Tried this
>>
>>
>> tt_content.text.20.dataWrap = <div class="basicText">|</div>
>>
>> /*
>> tt_content.text.20.dataWrap.split {
>>
>> not succeeded

>
> of course not, since there is nothing like
>
> dataWrap.split
>
> and you didn't create the ###SPLITTER### for your output.
>
> I invented the snippet you are trying to use long time ago and reactivated
> it for the cookbook, so I definitely know that it works, but to get it
> running you need
> a) a stdWrap (or other) function to insert the ###SPLITTER### to the content
> you want to split
> b) the stdWrap function split used in a place where it belongs to.
>
> HTH
>
> Joey
>
>

Tried



temp.customRender = CASE
temp.customRender {
key.field = colPos
default < tt_content
0 < tt_content
1 < tt_content
4 < tt_content
0.text.stdWrap.dataWrap = <div class="basicText">|<br class="none"
/></div>
/*
0.text.stdWrap.split {
token = ###SPLITTER###
cObjNum = 1||2|*||*|3||4
1.current = 1
1.wrap = <div class="basicText">|<br class="none" /></div>
2.current = 1
2.wrap = <div class="basicText">|<br class="none" /></div>
3.current = 1
3.wrap = <div class="basicTextLast">|<br class="none" /></div>
4.current = 1
}
*/
1.text.stdWrap.dataWrap = <div class="basicText">|<br class="none"
/></div>
}

[PIDinRootline =1570,1572,1574]
tt_content >
tt_content < temp.customRender
[end]

didn't get desired result
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #7  
Alt 10.10.2007, 20:04
JoH
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Different wrap for last content in content area

> Tried
>
> temp.customRender = CASE
> temp.customRender {
> key.field = colPos
> default < tt_content
> 0 < tt_content
> 1 < tt_content
> 4 < tt_content
> 0.text.stdWrap.dataWrap = <div class="basicText">|<br class="none"
> /></div>
> /*
> 0.text.stdWrap.split {
> token = ###SPLITTER###


You are using the token ###SPLITTER### here.
###SPLITTER### is just a name for a token that I invented together with this
solution.
It could even be something like ###WHATEVER###.
To make use of it you first have to insert it somehow into your code.
###SPLITTER### is nothing that would be inserted by default, it has to be
inserted manually i.e. by a wrap, a cObject or however you like.
Without inserting the ###SPLITTER### first you simply can't split the
content, since the token will never be found by the split function.

Got the point?

Joey


_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
  #8  
Alt 11.10.2007, 20:15
Tapio Markula
Gast
 
Beiträge: n/a
Standard Re: [TYPO3] Different wrap for last content in content area

JoH kirjoitti:
>> Tried
>>
>> temp.customRender = CASE
>> temp.customRender {
>> key.field = colPos
>> default < tt_content
>> 0 < tt_content
>> 1 < tt_content
>> 4 < tt_content
>> 0.text.stdWrap.dataWrap = <div class="basicText">|<br class="none"
>> /></div>
>> /*
>> 0.text.stdWrap.split {
>> token = ###SPLITTER###

>
> You are using the token ###SPLITTER### here.
> ###SPLITTER### is just a name for a token that I invented together with this
> solution.
> It could even be something like ###WHATEVER###.
> To make use of it you first have to insert it somehow into your code.
> ###SPLITTER### is nothing that would be inserted by default, it has to be
> inserted manually i.e. by a wrap, a cObject or however you like.
> Without inserting the ###SPLITTER### first you simply can't split the
> content, since the token will never be found by the split function.
>
> Got the point?
>
> Joey
>
>

I got from Peter Klein
- cut --
# Clear original "styles.content.get"
styles.content.get >
styles.content.get = COA
styles.content.get {

# Render all content elements, except the last one.
10 = CONTENT
10 {
table = tt_content
select.orderBy = sorting
select.where = colPos=0
select.languageField = sys_language_uid
select.max = total-1
renderObj < tt_content
renderObj.stdWrap.wrap = <div
class="contentElement">|</div>
}
# Render the last content element.
20 < .10
20.select.max >
20.select.begin = total-1
20.renderObj.stdWrap.wrap = <div class="lastContentElement">|</div>
}
-- cut --

With some modification that worked
_______________________________________________
TYPO3-english mailing list
TYPO3-english (AT) lists (DOT) netfielders.de
http://lists.netfielders.de/cgi-bin/.../typo3-english
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!Wong this Post!Spurl this Post!Reddit! Diesen Post bei linksilo.de bookmarken!
 

Lesezeichen

Themen-Optionen
Ansicht Thema bewerten
Thema bewerten:

Forumregeln
Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are an


Ähnliche Themen

Thema Autor Forum Antworten Letzter Beitrag
Re: [TYPO3] Wrap the content in RTE (htmlArea RTE) Äàðüÿ Ëîícêàÿ typo3-english@lists.netfielders.de 1 10.09.2007 23:04
[TYPO3] wrapping a website into the content area David Banning typo3-english@lists.netfielders.de 1 02.03.2007 08:04
[TYPO3] Header layout based on content area Lasse Guldsborg typo3-english@lists.netfielders.de 4 12.02.2007 15:20
[TYPO3] Different target for one content area Tapio Markula typo3-english@lists.netfielders.de 0 05.02.2007 13:23
[TYPO3] assign a content element to the end of a content area Jamie Lawrence Jenner typo3-english@lists.netfielders.de 4 30.01.2007 17:02


Alle Zeitangaben in WEZ +1. Es ist jetzt 08:06 Uhr.


Powered by vBulletin® Version 3.7.4 (Deutsch)
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.1.0
Template-Modifikationen durch TMS

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75