annotate zpt/toc_text.zpt @ 526:3f375a048402

moved search and dict into separate layers. removed search_template. added tocMode=concordance. fixed bug with paging tocs.
author casties
date Tue, 10 Apr 2012 19:41:44 +0200
parents 91051b36b9cc
children 0b8bed1223ad
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
481
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
2 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
3 <html xmlns="http://www.w3.org/1999/xhtml">
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
4 <head>
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
5 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
6 </head>
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
7 <body>
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
8 <!-- block used for main content area -->
489
55e3398e395e more new templates. monkey-patch for App.ImageFile.
casties
parents: 488
diff changeset
9 <div class="toc-text" metal:define-macro="main"
518
91051b36b9cc uses xml info from doc-info.xql for table of contents now.
casties
parents: 501
diff changeset
10 tal:define="start pageinfo/start; tocsize docinfo/numTocEntries; grpsize pageinfo/tocPageSize;
482
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
11 batch python:here.getBatch(start=start,size=grpsize,end=tocsize);">
526
3f375a048402 moved search and dict into separate layers.
casties
parents: 518
diff changeset
12 <div metal:use-macro="here/template/common_template/macros/toc_switcher"/>
482
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
13 <div class="ruler">
501
29c6d09a506c more cleanup.
casties
parents: 489
diff changeset
14 <metal:block metal:use-macro="here/template/common_template/macros/toc_ruler"/>
482
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
15 </div>
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
16 <div class="content"
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
17 tal:content="structure python:here.getTocPage(mode='text',start=start,pageinfo=pageinfo,docinfo=docinfo)" />
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
18 </div>
7ca8ac7db06e more new template stuff. more batching methods in documentViewer.
casties
parents: 481
diff changeset
19 <!-- toc -->
481
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
20 </body>
0a0f7f570f90 more new templates
casties
parents: 122
diff changeset
21 </html>