I just want to do something like http://20thingsilearned.com with Typo3.
First I just took a pagination with normal Typo3 settings.
This is my setup:
# Blätternavigation
tt_content.menu.20.10 = COA
tt_content.menu.20.10 {
stdWrap.wrap = <ul class="forth_back_nav">|</ul>
stdWrap.required = 1
# Nach oben / Zur übersicht
10 = HMENU
10 {
special = browse
special.prevnextToSection = 1
special.items = up
special {
up.fields.title = Übersicht
}
1 = TMENU
1.NO = 1
1.NO.wrapItemAndSub = <li class="up">|</li>
}
# Vorige Seite
20 < .10
20 {
special.items = prev | prevsection_last
special.prev.fields.title = vorige Seite
1.NO.wrapItemAndSub = <li class="prev">|</li>
}
# Nächste Seite
30 < .10
30 {
special.items = next | nextsection
special.next.fields.title = nächste Seite
1.NO.wrapItemAndSub = <li class="next">|</li>
}
}
This doesn’t work perfectly, ‚cause it just won’t work like a book does.
I’ve got my treestructure as follows:
So if I want to paginate through the tree it has to work like I’m gettin from the rootpage to chapter 1, from chapter 1 to page 1, page 2, page 3, from page 3 to chapter 2, (chapter 2) page 1, page 2, page 3 and so on.
How can I solve something like this? Has anybody any idea? Haven’t found something on the www. Please, please contact me if you have any suggestions!
Gefällt mir Wird geladen …