分享
  • 收藏
  • 举报
    X
    请问辅助栏目子栏目的调用地址怎么写?
    828
    6

              {volist name=":fun('Category@sortlist',1,'cms')" id="rs"}

                <div class="media-list-b">

               

                 <a target="_blank" href="{$rs.url}" class="c-img"> {notempty name="rs.chengshitupian"} <img alt="{$rs.url}" src="{$rs.chengshitupian|tempdir}" width="135" height="90">{/notempty}

                  <div class="cover"></div>

                  <div class="cover-text"> <span class="cover-title">{$rs.name}</span> <span class="cover-sub">{$rs.chengshimingcheng}</span> </div>

                  </a>

              

                  </div>

              {/volist}

    调用一级栏目没问题链接也正常

    调用二级栏目时链接只跳转当前页

    测试地址:http://www.mybwg.cn/index.php/cms/category/index/fid/2.html

    就是这里跳转不正常

    9
    赏礼
    赏钱
    收藏
    点击回复
        全部留言
    • 6
    • 素之美 风格开发者 消费:495.25元 2019-08-19 14:59 14:596楼
      {volist name=":fun('Category@sortlist',0,'bbs')" id="rs"}
      <a href="{:urls('category/index',"fid=$key")}" target="_blank">                                                             
      {/volist}


      Baymax 消费:0元 2019-08-19 16:16
      十分感谢
      Baymax 消费:0元 2019-08-19 16:17
      另外想请问下跳个人主页该怎么写?这是在辅助栏目中,之前的跳转链接都失效了
      素之美 消费:495.25元 iPhone 2019-08-19 16:40
      你写的代码和详细页面地址发来我待会去看看
      Baymax 消费:0元 2019-08-19 23:09
      @素之美 
      请问这段代码怎么写动态id和mid?
      {volist name="listdb" id="rs" where='id=$id'}
    0 赏钱 赏礼回复
    • 素之美 风格开发者 消费:495.25元 2019-08-19 16:54 16:546楼
      {:get_url('user',['uid'=>$rs['uid']])}


    0 赏钱 赏礼回复
    更多回复
    恢复多功能编辑器
  • 3 1
  • 推荐内容
    扫一扫访问手机版
    请选择要切换的马甲:

     
    网页即时交流
    QQ咨询
    咨询热线
    020-28998648