Solution for the „Book-Problem“


The solving as follows:

# Blätternavigation
browseNavNext = COA
browseNavNext {

	# Nächste Seite
	10 = HMENU 
	10  {
		# wrap = <ul>|</ul>
		special = browse
		special {
			items = next
			next.fields.title = weiter
			items.prevnextToSection = 1
		}
		1 = TMENU
		1.NO = 1
		1.NO {
			linkWrap =    | 
		}
	}
}
browseNavPrev < browseNavNext
browseNavPrev.10.special.items = prev
browseNavPrev.10.special.prev.fields.title = zurück

you just have to put the

Link

on the end of the book pages and hide the text, so it will function withoug javascript at the moment.

The Problem is discribed here.

Advertisements

Create a book with Typo3


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:

  • Root
    • Chapter 1
      • Page 1
      • Page 2
      • Page 3
    • Chapter 2
      • Page 1
      • Page 2
      • Page 3

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!