Hongmu Notes
Home Program Notes pbootcms list page call
Program Notes PbootCms

pbootcms list page call

pbootcms list page call

1. Current column content list

{pboot:list}

<a href= "[list:link]">[list:title]</a>

{/pboot:list}

It can only be used on list pages with paging. The same page can only be used once. Otherwise: the old version will have paging conflicts, and the new version will display the same content.

The order sorting has been adjusted since version V1.2.2. By default, top, recommended, and headlines have priority display, including when using date, sorting, visits, likes, and opportunities. If you want to use a custom mode according to your own settings, you can combine it in any way: for example, order='datedesc,id desc' means that the order will be in reverse order by time, and then added in reverse order. For example, order='sorting desc,id desc' will sort by background first, and then in reverse order by id. For more situations, just refer to the example definition.

Control parameters:

num=* Number of pages per page, optional, used to control paging size

order=* Sorting method, optional, used to sort the output content, optional: date, sorting, istop, isrecommend, isheadline, visits, likes, opportunities, and other fields, where sorting is the sorting filled in by the background. Version 122 starts to support custom modes, such as: order='datedesc,id desc', order='sorting desc,id desc', (V1.3.7+) also supports random random sorting

filter = * |

isico=、ispics=、istop=、isrecommend=, isheadline=* is used to perform special filtering of data. Optional values ​​1 and 0 are optional. For example, only recommended content is retrieved: isrecommend=1

tags=x,y tags mode data filtering, optional, used to filter the list content, such as: tags='ASP,PHP', it is content containing asp or php tags, then you can use tags={content:tags} to call related articles of the current article

start=* starting data (V1.3.2+), optional, used for which item to start from

2. Specify column content list

{pboot:list scode=*}

<a href= "[list:link]">[list:title]</a>

{/pboot:list}

It can be used for the entire site. Multiple column codes are separated by commas. If an asterisk is used, it means all columns. The specified column content list is not paginated by default. Of course, you can still control forced paging through the page parameter, but be careful not to use multiple paginated lists on the same page.

If you want to use this loop tag to call the current content list, you can use scode={sort:scode}, which also avoids paging conflicts when the current column content is called multiple times on the same page.

Control parameters:

scode=* Column code, required, used to specify the column code to be retrieved. The read content will also include the content of the submenu under the column. Multiple columns are supported such as: 1, 2, 3

page=* Whether to paginate, optional, used to determine whether to perform paging in the list. It can be set to 1 or 0. This function is suitable for scenarios such as homepage paging.

start=* starting data (V1.3.2+), optional, used for which item to start from

The remaining control parameters are the same as the current column content list above

3. Available list tags

[list:n] starts with count 0
[list:i] starts with count 1
[list:id] number
[list:scode] Classification code
[list:subscode] Subcategory code
[list:sortname] category name
[list:subsortname] Subsort name
[list:sortlink] Category link
[list:subsortlink] subcategory link
[list:title] title
[list:titlecolor] title color
[list:subtitle] Subtitle
[list:tags] directly output tags
[list:author] Author
[list:source] source
[list:link] link
[list:outlink] external link
[list:date] Release date
[list:ico] Thumbnail, automatically calls the first picture of the article if it does not exist, [list:isico] can be used for judgment, and returns 1 or 0
[list:pics] Multiple pictures, V2.0.2 new [list:ispics] can be used for judgment, returning 1 or 0
[list:content] content
[list:enclosure] attachment
[list:enclosuresize] attachment size
[list:keywords] keywords
[list:description] description
[list:istop] Whether to stick to the top
[list:isrecommend] Is it recommended?
[list:isheadline] Is the headline
[list:visits] Number of visits
[list:likes] Number of likes
[list:oppose] Number of objections
[list:likeslink] Likes link
[list:opposelink] Oppose link
[list:ext_*] Retrieve extended field content

微信赞赏

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

Responsive diamond jewelry website template – 0965

Responsive diamond jewelry website template – 0965 Practical Collection Yiyou template

This EyouCMS responsive template is ideal for the diamond and jewelry industry, featuring a high-end, luxurious design style perfect for showcasing jewelry products, diamond accessories, brand stories, and custom-made services. It helps jewelry brands effectively communicate their luxury value online and attract high-net-worth customers. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for EyouCMS | EyouCMS...
👁 44
Fashion Designer – Clothing Manufacturer Website Template 0966

Fashion Designer – Clothing Manufacturer Website Template 0966 Practical Collection Yiyou template

An eYouCMS website template designed specifically for the fashion design and garment manufacturing industry. Its stylish and professional design enables effective presentation of fashion design works, product collections, production processes, and brand images. This template helps apparel businesses showcase their products online and attract both wholesale and retail customers. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for eYouCMS...
👁 59
Responsive luxury jewelry website template – 0967

Responsive luxury jewelry website template – 0967 Practical Collection Yiyou template

This EyouCMS responsive template is ideal for the luxury jewelry industry, featuring a high-end, sophisticated design style perfect for showcasing jewelry products, diamond accessories, brand stories, and custom-made services. It helps jewelry brands effectively communicate their luxury value online and attract high-net-worth customers. Template Display | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Questions for EyouCMS | EyouCMS...
👁 56
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 fashion brand eyewear and accessories website template – 0968

Responsive fashion brand eyewear and accessories website template – 0968 Practical Collection Yiyou template

An eyouCMS responsive website template designed for the eyewear and accessory industry. Its stylish and sophisticated design is ideal for showcasing eyewear products, accessory collections, brand identity, and new product launches – helping eyewear and accessory brands attract fashion-conscious consumers online. Template Demo | Installation Instructions | Website Backend: /login.php | Username: admin | Password: admin | Related Articles: Summary of Common Installation Issues for YouYouCMS | YouYouCMS...
👁 58
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