[thinkcmf]portal:articles解析出错

2024-01-04 282 views
0

ErrorException 未定义变量: vo

列表页调用时出错,vo 变量为识别

                <portal:articles item="vo" where="$where" order="post.create_time DESC" page="$page"
                                 relation="categories"
                                 categoryIds="$category.id"
                                 returnVarName="articles_data">
                    <div class="list-boxes">
                        <h2><a href="<?php echo cmf_url('portal/Article/index',array('id'=>$vo['id'],'cid'=>$category['id'])); ?>"><?php echo $vo['post_title']; ?></a>
                        </h2>
                        <p><?php echo $vo['post_excerpt']; ?></p>
                        <div>
                            <div class="pull-left">
                                <div class="list-actions">
                                    <a href="javascript:;"><i class="fa fa-eye"></i><span><?php echo $vo['post_hits']; ?></span></a>
                                    <a href="<?php echo url('portal/Article/doLike',array('id'=>$vo['id'])); ?>"
                                       class="js-count-btn"><i class="fa fa-thumbs-up"></i><span class="count"><?php echo $vo['post_like']; ?></span></a>
                                    <a href="<?php echo url('user/Favorite/add',array('id'=>$vo['id'],'cid'=>$category['id'])); ?>"

回答

5
font{
    line-height: 1.6;
}
ul,ol{
    padding-left: 20px;
    list-style-position: inside;
}

昨天对比代码已发现这个问题,谢谢

    a#ntes-pcmail-signature-default:hover {
        text-decoration: underline;
        color: #199cff;
        cursor: pointer;
    }
    a#ntes-pcmail-signature-default:active {
        text-decoration: underline;
        color: #246fce;
        cursor: pointer;
    }