如何在标签页中包含分页

问题描述 投票:0回答:1

我正在使用blogger.com创建一个博客。当我点击一个标签(或标签)时,我会回到主页,而相关的标签帖子应该加载。理想情况下,我希望每页加载最多20个帖子和分页以查看更多信息。我的代码是,

<b:widget id='HTML44' locked='false' title='Label' type='HTML'>
<b:includable id='main'>
<b:if cond='data:blog.url != data:blog.homepageUrl'>
<b:if cond='data:blog.pageType != &quot;item&quot;'>
<!-- only display title if it's non-empty -->
<b:if cond='data:blog.searchLabel != &quot;&quot;'>
<h2 class='title' id='tit_h2'><img border='0' src='http://3.bp.blogspot.com/-uqDJqtNSkfY/UyElenxHsDI/AAAAAAAAAGk/4QaOO27tY0w/s1600/Heading+1.png' style='margin-top:-2px; float:left; margin-right:10px;'/><data:blog.searchLabel/></h2>
<div class='eggTray'>
<script src='http://helplogger.googlecode.com/svn/trunk/listbadge.js'>{&quot;pipe_id&quot;:&quot;1a6640e2a78b2c6e736f2220529daae5&quot;,&quot;_btype&quot;:&quot;list&quot;,
 &quot;pipe_params&quot;:{&quot;URL&quot;:&quot;http://www.foxbet.gr/feeds/posts/default/-/<data:blog.searchLabel/>&quot;},
&quot;hideHeader&quot;:&quot;false&quot;,&quot;height&quot;:&quot;auto&quot;,&quot;count&quot;: 20  }</script>
<div class='ycdr' style='font-family: arial, sans-serif; font-size: 9px;'><a href='http://helplogger.blogspot.com/2012/05/recent-posts-widget-with-thumbnails-for.html' target='_blank' title='Grab this widget'>Recent Posts Thumbnails</a> <a href='http://helplogger.blogspot.com/' target='_blank'>Blogger Widget</a></div><noscript>Your browser does not support JavaScript!</noscript></div>
<style type='text/css'>
.ybi{display:block;}
.eggTray {margin:10px 0px;padding:0px;}
.ybr li  {border-bottom:0px #cccccc dotted; padding:0px 0px 10px 0px!important;}
.pipesTitle {padding-top:0px;}
.pipesDescription {display:true;}
.ycdr {display:none; background:transparent url(http://3.bp.blogspot.com/-oxTuqVj1ziA/T6P6wtxqsgI/AAAAAAAACBE/wWR0bb2gfuE/s1600/logo.png) 0px 0px no-repeat; padding: 1px 0px 0px 19px; height:14px; margin: 4px 0px 0px 0px;line-height:14px;}
.ycdr, .ycdr a {color:#999999;}
.widget .popular-posts ul {padding-left:0;}
.pipesThumbnail{width: 70px !important; height: 50px !important;}
.pipesThumbnail img{width: 100% !important; height: auto !important;}
</style>
<div class='widget-content'>
<data:content/>
</div>
<b:include name='quickedit'/>
</b:if> </b:if></b:if>
</b:includable>
</b:widget>

任何人请帮助我

pagination tags label blogs blogger
1个回答
1
投票

考虑到您的模板中有分页脚本。

现在,对于可以在标签上处理的分页脚本,还需要在URL中指定参数。

例:

http://yourblog.blogspot.com/search/label/posts?&max-results=20

这里posts将被您的标签名称取代。

qazxsw poi参数也可以在您的标签上进行分页。

&最多可加载20个帖子(可根据您的选择更改)

希望这可以帮助。

© www.soinside.com 2019 - 2024. All rights reserved.