SiteFactoryCMS:显示图片栏目循环列表信息 分页

来自站长百科
跳转至: 导航、​ 搜索

导航: 上一页 | 首页 | DedeCMS | 帝国CMS | Drupal | PHPCMS | PHP168 | Xoops | Joomla | SupeSite

Sf939.jpg


Sf940.jpg

调用例举:

<!—标签:{PE.Label id="图片子栏目列表" /}-->
{PE.DataSource id="InfoList" datasource="显示图片栏目循环列表信息_ 分页" page="true" pagesize="10" pagemain="true" arraynodeid="<xsl:value-of select="Table/arrChildID"/>" parentid="<xsl:value-of select="$parentid"/>" titlelen="<xsl:value-of select="$titlelen"/>" hits="<xsl:value-of select="$hits"/>" elitelevel="<xsl:value-of select="$elitelevel"/>" tablename="<xsl:value-of select="$tablename"/>" xslt="true" /}

            {PE.Repeat id="InfoList" loop="1000"}
              {PE.field id="InfoList" fieldname="IncludePic" /}
              [{PE.field id="InfoList" fieldname="NodePath" /}]
              {PE.field id="InfoList" fieldname="InfoPath" /}
              {PE.field id="InfoList" fieldname="Hits" /}
              {PE.field id="InfoList" fieldname="UpdateTime" /}
               <br />
             {/PE.Repeat}

{PE.Page id="url_动易后台风格" datasource="InfoList" unitname="张图片" /}

<!—标签:{PE.Label id="图片二列式栏目左右循环" /}-->
{PE.DataSource id="InfoList<xsl:value-of select="NodeID"/>" datasource="显示图片栏目循环列表信息" arraynodeid="<xsl:value-of select="arrChildID"/>" parentid="<xsl:value-of select="$parentid"/>" shownum="<xsl:value-of select="$shownum"/>" hits="<xsl:value-of select="$hits"/>" elitelevel="<xsl:value-of select="$elitelevel"/>" xslt="true" /}

        {PE.Repeat id="InfoList<xsl:value-of select="NodeID"/>" loop="10"}
         <li>
          <div class="pe_u_thumb">
          {PE.field id="InfoList<xsl:value-of select="NodeID"/>" fieldname="DefaultPicUrl" /}
          </div>
          <div class="pe_u_thumb_title">
            {PE.field id="InfoList<xsl:value-of select="NodeID"/>" fieldname="InfoPath" /}
          </div>
          </li>
        {/PE.Repeat}

可调用的字段:

Sf941.jpg

模板代码如下:

{PE.DataSource id="InfoList" datasource="显示图片栏目循环列表信息_分页" page="true" pagesize="10" pagemain="true" arraynodeid="55,56,57,58" parentid="2" titlelen="20" hits="" elitelevel="" tablename="PE_U_Photo" xslt="true" /}

      {PE.Repeat id="InfoList" loop="1000"}
        {PE.field id="InfoList" fieldname="IncludePic" /}
        [{PE.field id="InfoList" fieldname="NodePath" /}]
        {PE.field id="InfoList" fieldname="InfoPath" /}
        {PE.field id="InfoList" fieldname="Hits" /}
        {PE.field id="InfoList" fieldname="UpdateTime" /}
       <br />
      {/PE.Repeat}

{PE.Page id="url_动易后台风格" datasource="InfoList" unitname="张图片" /}

前台显示样式:

Sf942.jpg