Hongmu Notes
Home Program Notes pbootcms paging call
Program Notes PbootCms

pbootcms paging call

pbootcms paging call

Let's give a demonstration

<!-- 分页 -->
{pboot:if({page:rows}>0)}
   <nav aria-label="page navigation" class="my-4">
     <div class="pagination justify-content-center">
         <a class="page-item page-link" href="{page:index}">首页</a>
         <a class="page-item page-link" href="{page:pre}">上一页</a>
          {page:numbar}<!-- 数字条,小屏幕时自动隐藏-->
          <a class="page-item page-link" href="{page:next}">下一页</a>
          <a class="page-item page-link" href="{page:last}">尾页</a>
     </div>
   </nav>    
{else}
       <div class="text-center my-5 text-secondary">未查询到任何数据!</div>
{/pboot:if}

Pagination bar label

Scope of application: The paging bar label applies to all pages that have paging implemented.

Tag function: used to output paging code

1. Pagination bar label

{page:bar} The complete paging bar built into the system
{page:current} current page number
{page:count} total number of pages
{page:rows} Total number of data rows
{page:index} Home page link
{page:pre} Previous page link
{page:next} next page link
{page:last} last page link
{page:status} paging status information
{page:numbar} Number bar, the number with class name is page-num, and the current one also has page-num-current
{page:selectbar} drop-down selection bar

2. The HTML style class name that comes with the paging bar

Status: page-status

Home page: page-index

Previous page: page-pre

Next page: page-next

Last page: page-last

Number bar: page-numbar, the number below the number bar: page-num, if it is the current page, then the number also contains: page-num-current

Drop-down bar: page-select (the default bar is no longer displayed)

If you use the system complete paging bar, the above style names will be included in the output HTML code. You can directly use the corresponding names to define specific styles in your own css;

If you use a custom method, then define it according to the html code you wrote, but page-num and page-num-current under the number bar are still valid.

Of course, if you are relatively familiar with the front end, you should know that all of the above can be seen through F12.

微信赞赏

WeChat

支付宝赞赏

Alipay

✍️ Author: Hong Mu

webmaster · Thanks for reading, stay tuned for more exciting content

Author homepage View home page →

Related articles

Addition of message function to pbootcms website

Addition of message function to pbootcms website Program Notes PbootCms

Scope of application of message board tags: can be used anywhere on the entire site Tag function: used for users to submit messages and retrieve message records 1. Message submission form<form action="{pboot:msgaction}" method="post"> Contact person:<input type="tex…
👁 174
pbootcms introduces public file code

pbootcms introduces public file code Program Notes PbootCms

1. Template file nested reference {include file=***.html} Instructions for use: It can be used nested, such as: index.html nests a head.html, and nested comm.html in head.html supports the use of subdirectories, such as: {include file=comm/*.html} 2. Time formatting tag style=*, such as: within...
👁 235

Recommended reading

Atmospheric Photography Studio Website Template 0950

Atmospheric Photography Studio Website Template 0950 Practical Collection Yiyou template

An EyouCMS website template designed for professional photography studios. Its visual art-inspired design is perfect for showcasing photographic works, studio environments, photography services, and brand stories. This template helps photography studios present a premium online presence and attract clients. Template Demo | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS (E...
👁 54
Responsive wedding photography website template – 0951

Responsive wedding photography website template – 0951 Practical Collection Yiyou template

This EyouCMS responsive template is ideal for the wedding and travel photography industry. Its romantic and elegant design makes it perfect for showcasing wedding travel photography portfolios, photography services, travel destinations, and client testimonials. It helps wedding photography agencies attract prospective clients online. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS...
👁 32
Responsive household services and cleaning company website template – 0952

Responsive household services and cleaning company website template – 0952 Practical Collection Yiyou template

An eyouCMS responsive website template designed for domestic service and cleaning companies. Its fresh and professional design effectively showcases cleaning services, household maintenance offerings, service personnel, and customer reviews. This template helps domestic service companies build a strong online brand presence and attract residential clients. Template Overview | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for YouyouCMS | YouyouCMS...
👁 62
Resource website typecho001 template

Resource website typecho001 template Program Notes Typecho

typecho001 template template please do not modify the folder name of this template. The folder name is: typecho001 1.4 Fix the js output problem on the article page 1.3 Fix the error prompt when the plug-in is not installed Optimize the list page code output 1.2 Fix the comment function and add a custom homepage title 1.1 Fix the comment reply asymmetry function Add a separate title setting function on the homepage Add the website favicon.ico icon Add one...
👁 198
Responsive wedding photography & personal portrait website template – 0953

Responsive wedding photography & personal portrait website template – 0953 Practical Collection Yiyou template

This EyouCMS responsive template is ideal for the wedding photography and personal portrait photography industries. Its romantic and elegant design makes it perfect for showcasing wedding photos, personal portraits, photography services, and client testimonials. It helps photography studios attract prospective couples and individual clients online. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS...
👁 59
Modification of typecho paging style

Modification of typecho paging style Program Notes Typecho

Sir, times have changed! Typecho is currently the most perfect solution, because Baidu can only see the code of fixed thinking. The actual generated HTML code is breathtakingly clean and fully customized, including adding classes to the li element, adding classes to the a element, adding classes to the previous page and next page, and removing the li tags that come with typecho to express more. I can even add some text to the content inside...
👁 517