1 | <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" |
---|
2 | lang="en" |
---|
3 | metal:use-macro="here/main_template/macros/master" |
---|
4 | i18n:domain="SimpleBlog"> |
---|
5 | |
---|
6 | <metal:block fill-slot="top_slot" |
---|
7 | tal:define="dummy python:request.set('disable_border',1)" /> |
---|
8 | |
---|
9 | <metal:css fill-slot="css_slot"> |
---|
10 | <link rel="stylesheet" type="text/css" media="screen" href="" tal:attributes="href string:$portal_url/SimpleBlogCSS.css" /> |
---|
11 | </metal:css> |
---|
12 | |
---|
13 | <div metal:fill-slot="main" |
---|
14 | tal:define="category python:(traverse_subpath and traverse_subpath[0]) or request.get('category') or ''; |
---|
15 | standardButtons python:here.simpleblog_tool.getShowStandardButtons(); |
---|
16 | results python:here.simpleblog_tool.searchForEntries(here, category, maxResults=0); |
---|
17 | b_size python:10; |
---|
18 | b_start python:0; |
---|
19 | b_start request/b_start | b_start; |
---|
20 | Batch python:modules['Products.CMFPlone'].Batch; |
---|
21 | "> |
---|
22 | |
---|
23 | <h1><metal:dummy i18n:translate="heading_category_search_results">Search results for category</metal:dummy>: <span tal:replace="category"/></h1> |
---|
24 | |
---|
25 | <div tal:condition="results" tal:define="batch python:Batch(results, b_size, int(b_start), orphan=1);"> |
---|
26 | <tal:results tal:repeat="result batch"> |
---|
27 | <tal:list tal:define="obj result/getObject;headerSize python:3"> |
---|
28 | <div metal:use-macro="here/SimpleBlog_macros/macros/descriptionOnly"/> |
---|
29 | </tal:list> |
---|
30 | </tal:results> |
---|
31 | <div metal:use-macro="here/batch_macros/macros/navigation" /> |
---|
32 | </div> |
---|
33 | |
---|
34 | <p tal:condition="not: results" i18n:translate="no_entries_in_category"> |
---|
35 | No Entries are found within this category. |
---|
36 | </p> |
---|
37 | |
---|
38 | </div> |
---|
39 | |
---|
40 | |
---|
41 | </html> |
---|