首页 > 其他分享 >易优CMS模板标签uitype栏目调用在模板文件index.htm中调用uitype标签,实现指定栏目可视化切换的效果

易优CMS模板标签uitype栏目调用在模板文件index.htm中调用uitype标签,实现指定栏目可视化切换的效果

时间:2024-07-19 10:54:38浏览次数:8  
标签:uitype 标签 field eyou type id 模板

【基础用法】标签:uitype描述:栏目编辑,比uitext、uihtml、uiupload标签多了一个typeid属性,使用时结合html一起才能完成可视化布局,只针对具有可视化功能的模板。用法: <div class="eyou-edit" e-id="文件模板里唯一的数字ID" e-page='文件模板名' e-type="type"> {eyou:uitype typeid='栏目ID' e-id='必须与上面的数字ID一致' e-page='必须与上面的文件模板名一致' id='field'} 这里嵌套模板标签代码 {/eyou:uitype} </div>属性: typeid='' 栏目ID e-id='' 每个模板文件里唯一的数字ID,必须与uihtml标签外层的html元素标签e-id保持一致 e-page='' 页面分组,假设模板文件是index.htm,那么e-page的值是index id='' 可以任意指定循环里的变量名替代field,假设id='field1',模板调用如:{$field.value} 变成 {$field1.value}涉及表字段: 无     【更多示例】 -------------------------------示例1-------------------------------- 描述:在模板文件index.htm中调用uitype标签,实现指定栏目可视化切换的效果。 <!DOCTYPE html> <html> <head>     <title>EyouCms企业建站系统</title> </head> <body> <div>     <div class="eyou-edit" e-id="400" e-page='index' e-type="type">         <!-- uitype可视化标签调用 start -->         {eyou:uitype typeid='2' e-id='400' e-page='index' id='field'}             {eyou:type type='self' empty='栏目不存在时,显示这里的文案'}             <a href="{$field.typeurl}" title="{$field.typename}">{$field.typename}</a>             {/eyou:type}         {/eyou:uitype}         <!-- uitype可视化标签调用 end -->         </div>     </div>     <!-- 可视化模板必须引入的ui标签 start -->     {eyou:ui open='off' /}     <!-- 可视化模板必须引入的ui标签 end --> </body> </html>   -------------------------------示例2-------------------------------- 描述:在模板文件lists_article.htm中调用uitype标签,实现指定栏目可视化切换的效果。 <!DOCTYPE html> <html> <head>     <title>EyouCms企业建站系统</title> </head> <body>     <div>         <div class="eyou-edit" e-id="400" e-page='lists_article' e-type="type">             <!-- uitype可视化标签调用 start -->             {eyou:uitype typeid='2' e-id='400' e-page='lists_article' id='field'}                 {eyou:type type='self' empty='栏目不存在时,显示这里的文案'}                 <a href="{$field.typeurl}" title="{$field.typename}">{$field.typename}</a>                 {/eyou:type}             {/eyou:uitype}             <!-- uitype可视化标签调用 end -->         </div>     </div>     <!-- 可视化模板必须引入的ui标签 start -->     {eyou:ui open='off' /}     <!-- 可视化模板必须引入的ui标签 end --> </body> </html>   -------------------------------示例3-------------------------------- 描述:在模板文件index.htm中,多处调用uitype标签的写法。 <!DOCTYPE html> <html> <head>     <title>EyouCms企业建站系统</title> </head> <body>     <div>         <!-- 第一次调用uitype标签 start -->         <div class="eyou-edit" e-id="400" e-page='index' e-type="type">             <!-- uitype可视化标签调用 start -->             {eyou:uitype typeid='2' e-id='400' e-page='index' id='field'}                 {eyou:type type='self' empty='栏目不存在时,显示这里的文案'}                 <a href="{$field.typeurl}" title="{$field.typename}">{$field.typename}</a>                 {/eyou:type}             {/eyou:uitype}             <!-- uitype可视化标签调用 end -->         </div>         <!-- 第一次调用uitype标签 end -->           <!-- 第二次调用uitype标签 start -->         <div class="eyou-edit" e-id="401" e-page='index' e-type="type">             <!-- uitype可视化标签调用 start -->             {eyou:uitype e-id='401' e-page='index' id='field'}                 {eyou:type type='self' empty='栏目不存在时,显示这里的文案'}                 <a href="{$field.typeurl}" title="{$field.typename}">{$field.typename}</a>                 {/eyou:type}             {/eyou:uitype}             <!-- uitype可视化标签调用 end -->         </div>         <!-- 第二次调用uitype标签 end -->     </div>       <!-- 可视化模板必须引入的ui标签 start -->     {eyou:ui open='off' /}     <!-- 可视化模板必须引入的ui标签 end --> </body> </html>   -------------------------------示例4-------------------------------- 描述:在模板文件index.htm中,多处调用uitype标签的写法,只在html最外层元素指定一次e-page属性值。 <!DOCTYPE html> <html> <head>     <title>EyouCms企业建站系统</title> </head> <body>     <div e-page='index'> <!-- 最外层指定e-page属性值,里面html元素<a>可以不再指定e-page属性值 -->           <!-- 第一次调用uitype标签 start -->         <div class="eyou-edit" e-id="400" e-type="type">             <!-- uitype可视化标签调用 start -->             {eyou:uitype typeid='2' e-id='400' e-page='index' id='field'}                 {eyou:type type='self' empty='栏目不存在时,显示这里的文案'}                 <a href="{$field.typeurl}" title="{$field.typename}">{$field.typename}</a>                 {/eyou:type}             {/eyou:uitype}             <!-- uitype可视化标签调用 end -->         </div>         <!-- 第一次调用uitype标签 end -->           <!-- 第二次调用uitype标签 start -->         <div class="eyou-edit" e-id="401" e-type="type">             <!-- uitype可视化标签调用 start -->             {eyou:uitype typeid='2' e-id='401' e-page='index' id='field'}                 {eyou:type type='self' empty='栏目不存在时,显示这里的文案'}                 <a href="{$field.typeurl}" title="{$field.typename}">{$field.typename}</a>                 {/eyou:type}             {/eyou:uitype}             <!-- uitype可视化标签调用 end -->         </div>         <!-- 第二次调用uitype标签 end -->     </div>       <!-- 可视化模板必须引入的ui标签 start -->     {eyou:ui open='off' /}     <!-- 可视化模板必须引入的ui标签 end --> </body> </html>

 

标签:uitype,标签,field,eyou,type,id,模板
From: https://www.cnblogs.com/hwrex/p/18311036

相关文章

  • 国产linux系统(银河麒麟,统信uos)使用 PageOffice 国产版在线打开 word文件自定义模板中
    国产linux系统(银河麒麟,统信uos)使用PageOffice国产版在线打开pdf文件PageOffice国产版:支持信创系统,支持银河麒麟V10和统信UOS,支持X86(intel、兆芯、海光等)、ARM(飞腾、鲲鹏、麒麟等)芯片架构。本示例关键代码的编写位置Vue+Springboot注意本文中展示的代码均为关键代码,复......
  • 易优CMS模板标签modelsartlist频道循环输出顶级栏目列表
    [基础用法]标签:modelsartlist(channelartlist)备注:使用channelartlist也可以正常输出描述:获取当前栏目分类的下级栏目的文档列表用法:{eyou:modelsartlisttypeid='栏目ID'type='son'loop='20'}<ahref='{eyou:fieldname='typeurl'/}'>{eyou:fi......
  • 模板方法设计模式
    模板方法设计模式:模板方法设计模式:解决方法中存在重复代码的问题。  模板方法设计模式的写法:1、定义一个抽象类2、在里面定义2个方法​一个是模板方法:把相同代码放里面去​一个是抽象方法:具体实现交给子类完成建议使用final关键字修饰模板方法:​模板方......
  • HTML学习1:网页基本标签
    <!DOCTYPEhtml><htmllang="en"><head>  <metacharset="UTF-8">  <metaname="viewport"content="width=device-width,initial-scale=1.0">  <title>网页基本标签</title></......
  • Tarjan模板
    structSCC{inttop=0,cntscc=0,dfncnt=0;vector<int>dfn,low,stk,instk;vector<int>sccnum,sccid;vector<vector<int>>g,scc;SCC(intn){dfn.assign(n+1,0);low.assign(n+1,0......
  • mysql触发器模板
    --当我们对dept表中的数据进行insertdeleteupdate的时候,请将这些操作记录到日志表当中--dept的表结构/*CREATETABLE`dept`(`DEPTNO`intNOTNULLCOMMENT'部门编号',`DNAME`varchar(14)CHARACTERSETutf8mb4COLLATEutf8mb4_0900_ai_ciDEFAULTNULLCOMMEN......
  • c++ primer plus 第16章string 类和标准模板库,16.2.1 使用智能指针
    c++primerplus第16章string类和标准模板库,16.2.1使用智能指针c++primerplus第16章string类和标准模板库,16.2.1使用智能指针文章目录c++primerplus第16章string类和标准模板库,16.2.1使用智能指针16.2.3uniqueptr为何优于autoptr16.2.3unique......
  • c++ primer plus 第16章string 类和标准模板库,16.2.2 有关智能指针的注意事项
    c++primerplus第16章string类和标准模板库,16.2.2有关智能指针的注意事项c++primerplus第16章string类和标准模板库,16.2.2有关智能指针的注意事项文章目录c++primerplus第16章string类和标准模板库,16.2.2有关智能指针的注意事项16.2.2有关智能指针的......
  • 2024-07-18 code标签渲染时会多出空格是怎么回事?
    问题就是我给code标签传递一段源代码,该代码明明没有空格,但实际渲染却多了一串空格?如下图所示: 原因:code标签包裹的内容会原原本本的渲染出来,包括空格。我查看了我的代码: 我是这么写的:<code>{{sourceCode}}</code>{{sourceCode}}前面有空格,code标签直接把它们......
  • 字典树模板
    把数据都存在一个TrieNode数组里,只保存其指向关系。classTrieNode{public:boolend;vector<int>son;TrieNode(){end=false;son=vector<int>(26,-1);}};classTrie{public:vector<TrieNode>tree;Trie(){......