Yuri-11 wrote:
>
>
>
>
> metti here/<nome del tuo script> al posto di
>
> view/funzionepython
>
> se sei in un template e non in una browser view
>
>
ho provato così ma dice ancora che non esiste:
<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="prima.prova"
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;">
<tal:listing
tal:define="batch python:Batch<b>(here/risultati*,
b_size, int(b_start), orphan=0);">
<table>
<tr>
<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>
<div
metal:use-macro="here/batch_macros/macros/navigation" />
</tal:listing>
</div>
</html>
ma la batch la devo definire per forza dentro il metal fill slot o
potevo anche definirla fuori come avevo fatto nelle prove iniziali?
--
View this message in context:
http://plone-regional-forums.221720.n2.nabble.com/Paginazione-tp6548880p6582094.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