Siteserver-stl:pageComments翻页评论列表:修订间差异

来自站长百科
跳转至: 导航、​ 搜索
(新页面: <span style="text-align:center; border:1px solid #000; float:right; padding:6px;"><strong>导航:</strong> 上一页</span> <div style="clear:both;"></div...)
 
无编辑摘要
 
第2行: 第2行:
<div style="clear:both;"></div>
<div style="clear:both;"></div>


'''stl:pageComments 翻页评论列表'''


*在[[模板]]中插入能够翻页的评论列表。<stl:pageComments> 元素需要和STL 元素 <stl:pageItems> 及 <stl:pageItem> 配合使用。


'''属性列表'''
下表显示所有属于此元素的属性列表。所有属于STL 元素 <stl:comments> 的成员均适用于<stl:pageComments>元素。属于 <stl:comments> 的成员未在下表列出。
{| border="1" cellpadding="0" cellspacing="0"
|-
! width="17%" | 属性
! width="18%" | 可能的取值
! width="18%" | 默认值
! width="65%" | 简介
|-
| pageNum
| &nbsp;
| &nbsp;
| 每一页显示的评论数目
|}
'''注意''':
*<stl:pageComments> 元素和 <stl:comments> 具有相同的属性,这两个元素的区别在于<stl:pageComments>能够翻页。
*通常将STL 元素 <stl:pageItems> 及 <stl:pageItem> 置于 <stl:pageComments> 元素的下方,代表翻页按钮。
*<stl:pageComments>元素必须包含在<stl:dynamic>元素内使用,同时<stl:pageItems>和<stl:pageItem>元素也必须包含在同一个<stl:dynamic>中。
'''stl:pageComments 示例'''
*示例一:显示能够翻页的评论列表.下面的例子显示当前内容的所有评论的列表,列表下方显示翻页[[导航]]。
<pre>
<stl:dynamic> 
<stl:pageComments pageNum="20" cellpadding="2" cellspacing="2"> 
    <stl:comment type="Content"></stl:comment> 
</stl:pageComments> 
<br /> 
<stl:pageItems> 
<table cellpadding="0" cellspacing="0" width="90%" height="40" align="center"> 
<tr><td align="left"> 
    <stl:pageItem type="FirstPage" text="首页"></stl:pageItem> |   
    <stl:pageItem type="PreviousPage" text="上一页"></stl:pageItem> |   
    <stl:pageItem type="NextPage" text="下一页"></stl:pageItem> |   
    <stl:pageItem type="LastPage" text="末页"></stl:pageItem> 
</td><td align="right"> 
    <stl:pageItem type="CurrentPageIndex" text="当前页:"></stl:pageItem>     
    <stl:pageItem type="PageNavigation"></stl:pageItem> 
</td></tr></table> 
</stl:pageItems> 
</stl:dynamic>
</pre>





2010年6月15日 (二) 16:10的最新版本

导航: 上一页

stl:pageComments 翻页评论列表

  • 模板中插入能够翻页的评论列表。<stl:pageComments> 元素需要和STL 元素 <stl:pageItems> 及 <stl:pageItem> 配合使用。

属性列表

下表显示所有属于此元素的属性列表。所有属于STL 元素 <stl:comments> 的成员均适用于<stl:pageComments>元素。属于 <stl:comments> 的成员未在下表列出。

属性 可能的取值 默认值 简介
pageNum     每一页显示的评论数目

注意:

  • <stl:pageComments> 元素和 <stl:comments> 具有相同的属性,这两个元素的区别在于<stl:pageComments>能够翻页。
  • 通常将STL 元素 <stl:pageItems> 及 <stl:pageItem> 置于 <stl:pageComments> 元素的下方,代表翻页按钮。
  • <stl:pageComments>元素必须包含在<stl:dynamic>元素内使用,同时<stl:pageItems>和<stl:pageItem>元素也必须包含在同一个<stl:dynamic>中。

stl:pageComments 示例

  • 示例一:显示能够翻页的评论列表.下面的例子显示当前内容的所有评论的列表,列表下方显示翻页导航
<stl:dynamic>  
<stl:pageComments pageNum="20" cellpadding="2" cellspacing="2">  
    <stl:comment type="Content"></stl:comment>  
</stl:pageComments>  
<br />  
<stl:pageItems>  
<table cellpadding="0" cellspacing="0" width="90%" height="40" align="center">  
<tr><td align="left">  
    <stl:pageItem type="FirstPage" text="首页"></stl:pageItem> |    
    <stl:pageItem type="PreviousPage" text="上一页"></stl:pageItem> |    
    <stl:pageItem type="NextPage" text="下一页"></stl:pageItem> |    
    <stl:pageItem type="LastPage" text="末页"></stl:pageItem>  
</td><td align="right">  
    <stl:pageItem type="CurrentPageIndex" text="当前页:"></stl:pageItem>      
    <stl:pageItem type="PageNavigation"></stl:pageItem>  
</td></tr></table>  
</stl:pageItems>  
</stl:dynamic>



参考资料[ ]