Sie sind hier : Homepage →  TYPO3 CMS - Info+Install→  Typo3 (1) warum? (V3.62 = alt!)→  Typo3 Tricks 2

Den Content einer Seite nach Alphabet sortieren

soll in etwa so gehen : (das probiere ich noch aus)

 

 

### TS-Setup für das Menü ###

temp.getPages = HMENU

temp.getPages {

special = directory

special.value = 1

1 = TMENU

1 {

expAll = 1

NO {

doNotShowLink = 1

stdWrap.cObject = LOAD_REGISTER

stdWrap.cObject {

allPages.field = uid

allPages.dataWrap = {register:allPages},|

}

}

}

2 < .1

3 < .1

4 < .1

5 < .1

6 < .1

7 < .1

8 < .1

}

 

temp.getContentList = COA

temp.getContentList {

10 < temp.getPages

20 = CONTENT

20 {

table = tt_content

select {

pidInList.data = register:allPages

orderBy = header

languageField = sys_language_uid

andWhere = sectionIndex=1 AND header!=''

}

renderObj = COA

renderObj {

10 = TEXT

10 {

outerWrap.cObject = COA

outerWrap.cObject {

10 = TEXT

10 {

value = <ul class="letterBox">|

if.isFalse.data = register:firstLetter

}

20 = TEXT

20 {

value = </ul><ul class="letterBox">|

if.isTrue.data = register:firstLetter

}

}

field = header

crop = 1|

if {

value.data = register:firstLetter

equals.field = header

equals.crop = 1|

negate = 1

}

}

20 = TEXT

20 {

field = header

typolink {

parameter.dataWrap = {field:pid}#{field:uid}

}

wrap = <li class="linkBox">|</li>

}

30 = LOAD_REGISTER

30 {

firstLetter.field = header

firstLetter.crop = 1|

}

}

}

30 = TEXT

30.value = </ul>

}

 

### Einbinden in die Seite ###

page.10 < temp.getContentList

 

 

Viele Grüße.

 

 

Olivier Dobberkau

Startseite -- © 2001/2022 - Copyright by Dipl.-Ing. Gert Redlich / Germany - D-65191 Wiesbaden - Telefon-Nummer - Impressum