首页 > 其他分享 >易优Attribute栏目属性列表-Eyoucms标签手册

易优Attribute栏目属性列表-Eyoucms标签手册

时间:2024-08-15 16:27:29浏览次数:8  
标签:Eyoucms 易优 attribute 标签 eyou Attribute type 模板 属性

attribute 栏目属性列表

[基础用法]

名称:attribute

功能:获取栏目的属性列表,或者单独获取某个属性值。

语法:

{eyou:attribute type='auto'}

{$attr.name}:{$attr.value}

{/eyou:attribute}

参数:

aid='' 文档ID,在arclist标签、list标签之内,以及内容页模板中一般不需要指定aid属性,系统会自动获取;
type='' 标签类型,默认是手动,具体可以参考教程底部的示例;

----type='default' 手动类型,新增的属性要显示必须在模板里添加后台复制的标签代码

----type='auto' 自动类型,随着后台属性的新增而自动显示

empty='' 没有数据时显示的文案

mod='' 每隔N行输出的内容

id='' 可以任意指定循环里的变量名替代field,假设id='field1',模板调用如:{$field.title} 变成 {$field1.title}

底层字段:

无

-------------------------------效果展示--------------------------------
1,在内容页调用属性列表,这里是自动类型,每次新增属性,不需要更改模板代码
模板调用代码

{eyou:attribute type='auto'}

{$attr.name}:{$attr.value}

{/eyou:attribute}

 

标签:Eyoucms,易优,attribute,标签,eyou,Attribute,type,模板,属性
From: https://www.cnblogs.com/hwrex/p/18361264

相关文章

  • 易优Assign模板文件中定义变量-Eyoucms标签手册
    【基础用法】名称:assign功能:模板文件中定义变量,可在其他标签里使用该变量语法:{eyou:assignname='typeid'value='5'/}文件:无参数:name=''变量名value=''赋给变量名的值底层字段:无【更多示例】-------------------------------示例1------------------------------......
  • AttributeError: module ‘openai’ has no attribute ‘error’
    题意:访问Python中 openai 模块的一个不存在的属性 error问题背景:I'mrunningaPythonsummarizerinAzureMLthatqueriesmygpt4deploymentforinformation.Everythingwasworkingfineuntiltwodaysago,whenIdecidedtoswitchtheoutputdirectory......
  • 030.Vue3入门,父页面给子页面传递attribute属性
    1、App.vue代码如下:<template><Father/></template><scriptsetup>importFatherfrom'./view/Father.vue'</script><style></style>2、Father.vue代码如下:<template><h3>父页面</h3><......
  • AttributeError: ‘list’ object has no attribute ‘append’
    AttributeError:‘list’objecthasnoattribute‘append’深度解析与实战指南概述:在Python编程中,AttributeError是一个常见的错误类型,它表明尝试访问或调用一个对象的属性或方法时失败了,因为该对象并没有这样的属性或方法。当你看到错误信息“Attrib......
  • AttributeError:“CarvanaDataset”对象没有属性“image”
    我尝试制作一个Unet模型。这是我的代码:importtorchimporttorch.nnasnnimporttorch.optimasoptimimportalbumentationsasAfromalbumentations.pytorchimportToTensorV2fromtqdmimporttqdmfrommodelimportUnetfromutilsimportget_loadersimport......
  • 将普通 python 文件导入另一个文件时出现 AttributeError
    我是新手。我正在尝试将简单的python文件导入到我的主文件中。相同的代码在我的mac上工作,但在我的电脑上不起作用。我不断收到此错误消息。“AttributeError:模块‘logo’没有属性‘hammer_logo’”第一个文件拍卖.py代码importlogoprint(logo.hammer_logo)第......
  • 2024宝塔批量建站搭建易优cms_易优批量上站
     宝塔全自动搭建易优cms批量建站 软件教程文本:大家好,这里是好主题网nbzhuti.cnQQ:822674928今天给大家带来的是易优cms批量建站首先我们要准备宝塔,开启宝塔api,然后相关信息填写到config.iniconfig.ini里面可以填写其他的配置项比如:php版本网站的用户名,密码,伪静态这......
  • 易优CMS模板标签uiarclist文档列表
    【基础用法】标签:uiarclist描述:文档列表编辑,比uitext、uihtml、uiupload标签多了一个typeid属性,使用时结合html一起才能完成可视化布局,只针对具有可视化功能的模板。用法:<divclass="eyou-edit"e-id="文件模板里唯一的数字ID"e-page='文件模板名'e-type="arclist">{eyou:uiar......
  • 易优CMS模板标签links友情链接控制友情链接的打开方式
    【基础用法】标签:links描述:用于获取友情链接列表。用法:{eyou:linkstype='text'loop='30'titlelen='15'}<ahref='{$field.url}'{$field.target}{$field.nofollow}>{$field.title}</a>{/eyou:links}属性:type=''链接类型,text为文......
  • 易优CMS模板标签beafter上下篇获取下一篇内容
    【基础用法】标签:beafter描述:获取当前文档上一篇、下一篇内容。用法:{eyou:beafterget='pre'}<ahref="{$field.arcurl}"title="{$field.title}">上一篇:{$field.title}</a>{eyou:else/}上一篇:暂无{/eyou:beafter}{eyou:beafterget='next&......