Changeset 91:b8c491e52ebc in documentViewer for zpt


Ignore:
Timestamp:
Apr 8, 2010, 11:04:51 AM (14 years ago)
Author:
casties
Branch:
default
Message:

new version with new full-text infrastructure and some more changed templates

Location:
zpt
Files:
3 added
1 edited

Legend:

Unmodified
Added
Removed
  • zpt/viewer_main.zpt

    r89 r91  
    22    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    33<html xmlns="http://www.w3.org/1999/xhtml"
    4  tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode options/viewMode">
     4 tal:define="docinfo options/docinfo; pageinfo options/pageinfo; viewMode pageinfo/viewMode; tocMode pageinfo/tocMode">
    55<head>
    66  <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
     
    1313  <tr>
    1414    <td width="300px" valign="top">
    15       <tal:block tal:replace="structure python:here.template.thumbs_main(docinfo=docinfo,pageinfo=pageinfo)" />
     15      <tal:block tal:replace="structure python:getattr(here.template, 'toc_%s'%tocMode)(docinfo=docinfo,pageinfo=pageinfo)"/>
    1616    </td>
    1717    <td width="100%" valign="top">
    18       <tal:block tal:condition="python:viewMode=='images'" tal:content="structure python:here.template.page_main_images(docinfo=docinfo,pageinfo=pageinfo,viewMode=viewMode,mk=options['mk'])" />
    19       <tal:block tal:condition="python:viewMode.startswith('text')" tal:content="structure python:here.template.page_main_text(docinfo=docinfo,pageinfo=pageinfo,viewMode=viewMode,mk=options['mk'])" />
     18      <tal:block tal:content="structure python:getattr(here.template, 'page_main_%s'%viewMode)(docinfo=docinfo,pageinfo=pageinfo,mk=options['mk'])"/>
    2019    </td>
    2120  </tr>
Note: See TracChangeset for help on using the changeset viewer.