Skip to Content
Menu
This question has been flagged
1717 Views

hello, I use oddo 11

I wanna pagination display 8 news in page , I use editor odoo I don't have local odoo just I edit my website from editor odoo  this is code 

<t name="Pager" t-name="portal.pager">

        <ul t-if="pager['page_count'] &gt; 1" t-attf-class="#{ classname or '' } pagination" t-att-style="style or None">

            <li t-att-class=" 'disabled' if pager['page']['num'] == 1 else None ">

                <a t-att-href=" pager['page_previous']['url'] if pager['page']['num'] != 1 else None">سابق</a>

            </li>

            <t t-foreach="pager['pages']" t-as="page">

                <li t-att-class=" 'active' if page['num'] == pager['page']['num'] else None "> <a t-att-href="page['url']" t-raw="page['num']"/></li>

            </t>

            <li t-att-class=" 'disabled' if pager['page']['num'] == pager['page_count'] else None ">

                <a t-att-href="pager['page_next']['url'] if pager['page']['num'] != pager['page_count'] else None">التالي</a>

            </li>

        </ul>

    </t>

Is this available to do this using editor ?


Avatar
Discard