ciao,
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
lang="en"
xmlns:tal="http://xml.zope.org/namespaces/tal"
xmlns:i18n="http://xml.zope.org/namespaces/i18n"
i18n:domain="example.myproject"
tal:omit-tag=""
metal:use-macro="here/main_template/macros/master">
<div metal:fill-slot="main"
tal:define="Batch python:modules['Products.CMFPlone'].Batch;
b_size python:5;
b_start python:0;
b_start request/b_start | b_start;">
Results
<tal:listing condition="view/risultati"
tal:define="batch python:Batch(view/risultati, b_size, int(b_start),
orphan=0);">
<table>
<tr bgcolor="#FF8040">
<td>Cognome</td>
<td>Nome</td>
</tr>
<tr tal:repeat="lista batch">
<td tal:content="lista/cognome">cognome</td>
<td tal:content="lista/nome">nome</td>
</tr>
</table>
<tal:base define="batch_base_url
python:view.context.portal_url()+'/@@search-companies'">
<div metal:use-macro="here/batch_macros/macros/navigation" />
</tal:base>
</tal:listing>
</div>
</html>
Questo è quello che devi mettere nel tuo file.pt. Dovrebbe funzionare così
com'è. Cambia solo il namespace del i18n all''inizio.
Può bastare come livello di dettaglio?;)
ciao,
Giacomo
-----
--
Giacomo Spettoli
company site: http://redomino.com
blog: http://www.spettoli.com
twitter: http://twitter.com/giacomospettoli
linkedin: http://linkedin.com/in/giacomospettoli
--
View this message in context:
http://plone-regional-forums.221720.n2.nabble.com/Paginazione-tp6548880p6578350.html
Sent from the Plone - Italy mailing list archive at Nabble.com.
_______________________________________________
Plone-IT mailing list
[email protected]
https://lists.plone.org/mailman/listinfo/plone-plone-it
http://plone-regional-forums.221720.n2.nabble.com/Plone-Italy-f221721.html