dede:arclist、dede:list等标签中调用附加字段

多轻多软的雪花啊,在空中飘舞着,追逐着,像—朵朵精巧的白菊。暗黄色的天际中像燃着一团百年都没有澌灭的野火,它肆无忌惮的吞噬着天间彩云,仿佛地狱使者受到差遣,来破坏天际的和谐。
 代码如下


    {dede:list perpage='20'}  
                        <div class="f-con01">  
                            <div class="f-con01-l">  
                                <a><img src="/templets/qiba/images/con01-f.jpg"></a>  
                            </div>  
                            <div class="f-con01-r">  
                                <p class="a6"><a rel="nofollow noopener noreferrer" href="[field:arcurl/]" target="_blank">[field:title/]</a></p>  
                                <p><a>[field:description/]...</a></p>  
                                <dl>  
                                    <dt>地址:</dt>  
                                    <dd>[field:id runphp="yes"]  
                                            $dsql = new DedeSql(false);  
                                            $sql="SELECT qiba.address from `dede_addonqiba` as qiba where qiba.aid=@me";  
                                            $arcRow = $dsql->GetOne($sql);  
                                            @me=''.$arcRow['address'].'';  
                                        [/field:id]</dd>  
                                    <dt>乘车路线:</dt>  
                                    <dd>[field:id runphp="yes"]  
                                            $dsql = new DedeSql(false);  
                                            $sql="SELECT qiba.roadline from `dede_addonqiba` as qiba where qiba.aid=@me";  
                                            $arcRow = $dsql->GetOne($sql);  
                                            @me=''.$arcRow['roadline'].'';  
                                        [/field:id]</dd>  
                                </dl>  
                                <dl>  
                                    <dt>电话:</dt>  
                                    <dd>[field:id runphp="yes"]  
                                            $dsql = new DedeSql(false);  
                                            $sql="SELECT qiba.telephone from `dede_addonqiba` as qiba where qiba.aid=@me";  
                                            $arcRow = $dsql->GetOne($sql);  
                                            @me=''.$arcRow['telephone'].'';  
                                        [/field:id]</dd>  
                                </dl>  
                            </div>  
                            <div class="f-con01-b">  
                                <div class="star">  
                                    <p>评分:</p>  
                                    [field:id runphp="yes"]  
                                            @me=rating_bar(@me,5);  
                                        [/field:id]  
                                </div>  
                            </div>  
                            <div class="clear"></div>  
                        </div>  
                        {/dede:list}  

到此这篇关于dede:arclist、dede:list等标签中调用附加字段就介绍到这了。过好自己的生活最重要,不攀不比。更多相关dede:arclist、dede:list等标签中调用附加字段内容请查看相关栏目,小编编辑不易,再次感谢大家的支持!

您可能有感兴趣的文章
dedecms如何实现任意页面调用当前会员信息的方

织梦dede:tag调用指定多个栏目的TAG标签

DedeCMS织梦判断是否有二级栏目输出HTML代码

织梦dede数据还原更新缓存也生成了为什么首页不对

织梦dede文档置顶并显示置顶文字或图标