Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
erp5
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
preetwinder
erp5
Commits
064e3077
Commit
064e3077
authored
Feb 03, 2014
by
Kazuhiko Shiozaki
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add pagination in ListBox_viewAsBlog.
parent
b727789a
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
38 additions
and
6 deletions
+38
-6
bt5/erp5_web_blog/SkinTemplateItem/portal_skins/erp5_web_blog/ListBox_viewAsBlog.xml
...ateItem/portal_skins/erp5_web_blog/ListBox_viewAsBlog.xml
+37
-5
bt5/erp5_web_blog/bt/revision
bt5/erp5_web_blog/bt/revision
+1
-1
No files found.
bt5/erp5_web_blog/SkinTemplateItem/portal_skins/erp5_web_blog/ListBox_viewAsBlog.xml
View file @
064e3077
...
...
@@ -36,13 +36,26 @@
<key>
<string>
_text
</string>
</key>
<value>
<unicode
encoding=
"cdata"
>
<![CDATA[
<div class="blog_rss">
<a
href=
"./WebSection_viewContentListAsRSS"
><img
src=
"web_images/rss-image.png"
alt=
"This blog as RSS"
/></a></div>
\n
\n
<tal:block
tal:define=
"real_context here/getContext; \n
<tal:block\n
xmlns:tal="http://xml.zope.org/namespaces/tal"\n
xmlns:metal="http://xml.zope.org/namespaces/metal"\n
xmlns:i18n="http://xml.zope.org/namespaces/i18n"\n
tal:define="field_id here/getId;\n
selection_name here/getSelectionName;\n
real_context here/getContext;\n
global is_gadget_mode request/is_gadget_mode | nothing;\n
line_list here/query;\n
listbox_max_lines python: int(here.getMaxLineNumber());\n
total_line python: int(here.total_size);\n
need_pagination python: total_line >
listbox_max_lines;\n
page_navigation_template python: request.get(\'page_navigation_template\', here.getPageNavigationTemplate());\n
is_slider_mode python: \'Slider\' in page_navigation_template;\n
is_default_listbox_field python: field_id==\'listbox\';\n
base_url_string real_context/absolute_url;\n
date_renderer nocall:real_context/WebSection_viewBlogFrontPage/listbox_effective_date/render_html;"
\n
tal:repeat=
"line here/query"
>
\n
date_renderer nocall:real_context/WebSection_viewBlogFrontPage/listbox_effective_date/render_html;">
\n
<div
class=
"blog_rss"
><a
href=
"./WebSection_viewContentListAsRSS"
><img
src=
"web_images/rss-image.png"
alt=
"This blog as RSS"
/></a></div
>
\n
\n
<tal:block
tal:repeat=
"line line_list"
>
\n
\n
<!--Here is a post-->
\n
<div
class=
"blog_post"
tal:define=
"render_result line/render"
>
\n
...
...
@@ -87,6 +100,25 @@
\n
<tal:block
tal:condition=
"not: repeat/line/end"
><br
/><hr
class=
"post_separator"
/></tal:block>
\n
\n
</tal:block>
\n
\n
<tal:block
tal:condition=
"need_pagination"
>
\n
<input
type=
"hidden"
\n
name=
"list_selection_name"
\n
value=
"default"
\n
tal:attributes=
"value selection_name"
/>
\n
<input
type=
"hidden"
\n
name=
"listbox_uid:list"
/>
\n
<input
type=
"hidden"
name=
"selection_name_selection_key"
value=
"md5"
\n
tal:define=
"selection_key here/getSelectionKey"
\n
tal:condition=
"selection_key"
\n
tal:attributes=
"name string:${selection_name}_selection_key;\n
value selection_key"
/>
\n
<div
class=
"listbox-footer-box"
>
\n
<tal:block
metal:use-macro=
"container/ListBox_asHTMLLibrary/macros/listbox_navigation"
/>
\n
</div>
\n
</tal:block>
\n
\n
</tal:block>
]]>
</unicode>
</value>
...
...
bt5/erp5_web_blog/bt/revision
View file @
064e3077
89
\ No newline at end of file
90
\ No newline at end of file
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment