Commit de4cea23 authored by Xiaowu Zhang's avatar Xiaowu Zhang

erp5_xhtml_style: fix text pagination for anonymous

parent 6596d16c
...@@ -294,7 +294,7 @@ ...@@ -294,7 +294,7 @@
<!-- Show list of direct listbox page selection --> <!-- Show list of direct listbox page selection -->
<tal:block metal:define-macro="text_link_page_navigation"> <tal:block metal:define-macro="text_link_page_navigation">
<tal:block tal:repeat="page_index page_index_list "> <tal:block tal:repeat="page_index page_index_list ">
<a tal:attributes="href python: '%s_setPage?%s_page_start=%s&list_selection_name=%s&listbox_uid:list=[]' %(field_id, field_id, page_index, selection_name); <a tal:attributes="href python: '%s_setPage?%s_page_start=%s&list_selection_name=%s&listbox_uid:list=[]&selection_key=%s' %(field_id, field_id, page_index, selection_name, selection_key);
class python: test(page_index==current_page, 'selected', ''); class python: test(page_index==current_page, 'selected', '');
title string:Page ${page_index}" title string:Page ${page_index}"
tal:content="page_index"/> tal:content="page_index"/>
......
...@@ -32,6 +32,14 @@ ...@@ -32,6 +32,14 @@
</object> </object>
</value> </value>
</item> </item>
<item>
<key> <string>content_type</string> </key>
<value> <string>text/html</string> </value>
</item>
<item>
<key> <string>expand</string> </key>
<value> <int>1</int> </value>
</item>
<item> <item>
<key> <string>id</string> </key> <key> <string>id</string> </key>
<value> <string>ListBox_viewTextPageNavigationRenderer</string> </value> <value> <string>ListBox_viewTextPageNavigationRenderer</string> </value>
...@@ -40,6 +48,10 @@ ...@@ -40,6 +48,10 @@
<key> <string>output_encoding</string> </key> <key> <string>output_encoding</string> </key>
<value> <string>utf-8</string> </value> <value> <string>utf-8</string> </value>
</item> </item>
<item>
<key> <string>title</string> </key>
<value> <unicode></unicode> </value>
</item>
</dictionary> </dictionary>
</pickle> </pickle>
</record> </record>
......
...@@ -6,10 +6,12 @@ ...@@ -6,10 +6,12 @@
<!-- Non gadget mode --> <!-- Non gadget mode -->
<tal:block tal:condition="not: is_gadget_mode"> <tal:block tal:condition="not: is_gadget_mode">
<tal:block tal:define="selection_key here/getSelectionKey;">
<tal:block metal:use-macro="real_context/ListBox_asHTMLLibrary/macros/first_previous_page_navigation" /> <tal:block metal:use-macro="real_context/ListBox_asHTMLLibrary/macros/first_previous_page_navigation" />
<tal:block metal:use-macro="real_context/ListBox_asHTMLLibrary/macros/text_link_page_navigation" /> <tal:block metal:use-macro="real_context/ListBox_asHTMLLibrary/macros/text_link_page_navigation" />
<tal:block metal:use-macro="real_context/ListBox_asHTMLLibrary/macros/next_last_page_navigation" /> <tal:block metal:use-macro="real_context/ListBox_asHTMLLibrary/macros/next_last_page_navigation" />
</tal:block> </tal:block>
</tal:block>
<!-- Gadget mode --> <!-- Gadget mode -->
<tal:block tal:condition="is_gadget_mode" <tal:block tal:condition="is_gadget_mode"
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment