pbootcms is okay, but the calling method is a bit lacking!
I originally wanted to call the article randomly, but I only found random calls. However, this kind of database query sorting is very performance-intensive!
Thousands of articles are fine, but tens of thousands or hundreds of thousands of articles, then just wait for it to lag!
So I did some research and found that pbootcms supports php tags, which is great!
So the calling method that comes with php+, the combination of the two produced the legendary, high-efficiency random calling!
calling code
隐藏内容:评论后查看
<?php for($i=0;$i<10;$i++){?>
{pboot:content id=<?=mt_rand(1,1342)?>}
<li>
<article class="list_layout">
<a href="[content:link]" class="thumbs" data-type="mip" data-title="[content:title]" title='[content:title]'>
<mip-img layout="container" alt='[content:title]' src="[content:ico]"></mip-img>
</a>
<h3><a href="[content:link]" title="[content:title]">[content:title]</a></h3>
<div class="info">
<span class="category"><a target="_blank" href="[content:sortlink]">[content:sortname]</a></span>
<span class="date">[content:date style=Y-m-d]</span><span class="view"><i class="icon icon-eye-1"></i><b>[content:visits]</b></span>
</div>
</article>
</li>
{/pboot:content}
<?php }?>