ppypp伦理天堂,91手机在线视频,免费在线观看黄色毛片,夜夜穞天天穞狠狠穞AV美女按摩

聯系官方銷售客服

1835022288

028-61286886

投訴 已解決 模塊表單循環 - mform標簽,在文章內容詳情頁調用時 2 0

模塊表單循環 - mform標簽,在文章內容詳情頁調用時,加上分頁還能不能使用偽靜態呢?

http://www.zbshanke.com/doc/427.html

4、在show.html頁面調用當前內容的模塊表單列表數據(假設表名是ly,模塊是news)

{mform module=news form=ly cid=$id page=1 pagesize=5 urlrule=}

主題:{$t.title}....

{/mform}

{$pages}// 分頁輸出字符串


開啟分頁后那個urlrule= 不知道怎么寫了,

我想這樣顯示的

當前內容頁地址是:/news/1.html

那內容模塊表單的分頁地址是:/news/1-1.html /news/1-2.html

當前內容頁地址是:/blog/8.html

那內容模塊表單的分頁地址是:/blog/8-1.html /blog/8-2.html

我現在在

config/rewrite.php

加了

"([A-za-z0-9 \-\_]+)\/([0-9]+)-\/([0-9]+)\.html" => "index.php?c=show&id=$2&page=$3",

就是不知道那個urlrule= 怎么寫




解決方案
  • {php $uu="/blog/".$id.".html";}

    {mform module=news form=ly cid=$id page=1 pagesize=5 urlrule=$uu}


    "blog\/([0-9]+)-\/([0-9]+)\.html" => "index.php?c=show&id=$1&page=$2",

    滿意答案
    開源積分+10
  • 回復@迅睿官方創始人 謝謝官方,我根據您的,改成這樣

    {php $uu="/".$cat.dirname."/".$id."-[page].html";}

    {mform module=news form=ljml cid=$id order=inputtime page=1 pagesize=1 urlrule=$uu}

    "([A-za-z0-9 \-\_]+)\/([0-9]+)\-([0-9]+)\.html(.*)" => "index.php?c=show&id=$2&page=$3",

    分頁地址對了

    /blog/88-1.html

    /blog/88-2.html

    /blog/88-3.html

    但是為什么打開后,地址變成動態鏈接了

    /index.php?c=show&id=88&page=2

  • @迅睿官方創始人:用其他方式解決了,