美文网首页
关于易优cms图集模型的调用

关于易优cms图集模型的调用

作者: 阿达_74f4 | 来源:发表于2018-09-22 15:45 被阅读0次

    一、关于图集模式

    1、如何在文章内容页调用封面图片

    2、在后台编辑详细内容事无论是粘贴还是手动输入,前台页面使用{$eyou.field.content}调用,均显示代码格式

    例:<p>111111111111111111111</p>

    二、关于获取单条文档数据

    按照手册使用

    {eyou:arcview aid='43'}

    <a href="{$field.arcurl}">{$field.title}</a>

    {/eyou:arcview}

    报错显示:

    未定义数组索引,错误的标签变量名: arcurl

    三、在栏目循环中判断栏目id

    <ul class="nav nav-menu nav-inline nav-pills text-right">

                <li  class='active'><a href="/" class="topa"> 首页</a></li>

                {eyou:channel type="top" row="60" id="field" currentstyle="active"}

                <li class=''><a href="{$field.typeurl}" class="topa" style="color:#fff;">{$field.typename}</a>

                {eyou:if condition='($eyou.field.typeid == "4")'}

                  111

                {/eyou:if}

                {eyou:notempty name="$field.children"}

                  <ul class="drop-menu"

                    > 

                    {eyou:channel name="$field.children" row="100" id="field2"}

                    <li><a href="{$field2.typeurl}">{$field2.typename}</a></li>

                    {/eyou:channel}               

                  </ul>

                {/eyou:notempty}

                </li>

                {/eyou:channel}

              </ul>

    报错显示:

    未定义数组索引,错误的标签变量名: field

    问题答疑

    一、关于图集模式

    1、如何在文章内容页调用封面图片

    {$field.litpic}

    2、在后台编辑详细内容事无论是粘贴还是手动输入,前台页面使用{$eyou.field.content}调用,均显示代码格式,例:

    111111111111111111111

    这个私下联系小虎哥,一般是正常显示,除非你说的是广告那里的编辑器。

    二、关于获取单条文档数据

    经过测试调用,没毛病

    三、在栏目循环中判断栏目id

    <ul class="nav nav-menu nav-inline nav-pills text-right">

                <li  class='active'><a href="/" class="topa"> 首页</a></li>

                {eyou:channel type="top" row="60" id="field" currentstyle="active"}

                <li class=''><a href="{$field.typeurl}" class="topa" style="color:#fff;">{$field.typename}</a>

    {eyou:if condition='($field.typeid == "4")'}

                  111

                {/eyou:if}

                {eyou:notempty name="$field.children"}

                  <ul class="drop-menu"

                    > 

                    {eyou:channel name="$field.children" row="100" id="field2"}

                    <li><a href="{$field2.typeurl}">{$field2.typename}</a></li>

                    {/eyou:channel}               

                  </ul>

                {/eyou:notempty}

                </li>

                {/eyou:channel}

              </ul>

    转自;http://www.eyoucms.com/bbs/1697.html

    相关文章

      网友评论

          本文标题:关于易优cms图集模型的调用

          本文链接:https://www.haomeiwen.com/subject/wckxoftx.html