Warm tip: This article is reproduced from serverfault.com, please click

oracle-使用静态应用程序文件作为卡列表图标

(oracle - Using Static Application Files as Card List Icon)

发布于 2020-12-02 17:38:36

我正在使用Application Express 20.1设置一个简单的中心,用于将人员路由到其他APEX应用程序/网站。我想使用带有我的管理人员提出的一些自定义图标的卡片清单。我有:

  1. 将图像上传到静态应用程序文件
  2. 创建了静态列表,并使用“图像/类”字段中的静态应用程序文件中的图像标记了列表项
  3. 在列表区域属性中将模板选项设置为“显示图标”

但是,当我运行页面时,图像不会显示图标通常所在的位置。我已将图标更改为fa图片,只是为了确保它们可以正常工作。我是否缺少步骤,或者将这些图像用作列表卡图标需要某种文件格式?提前致谢。

Questioner
Ingraham
Viewed
0
Ingraham 2020-12-16 04:12:23

为此,你必须为卡列表创建一个新模板或修改现有模板。

在“共享组件”>“模板”中找到的模板定义中,找到你要查找的项目(在本例中为“卡片”),然后单击它。在其中,你需要更改“列表模板当前”和“列表模板非当前”部分。以下是模板的原始配置方式:

<li class="t-Cards-item is-active #A04#">
  <div class="t-Card">
<a href="#LINK#" class="t-Card-wrap" #A05#>
  <div class="t-Card-icon u-color #A06#"><span class="t-Icon #ICON_CSS_CLASSES#"><span class="t-Card-initials" role="presentation">#A03#</span></span></div>
  <div class="t-Card-titleWrap"><h3 class="t-Card-title">#TEXT#</h3><h4 class="t-Card-subtitle">#A07#</h4></div>
  <div class="t-Card-body">
    <div class="t-Card-desc">#A01#</div>
    <div class="t-Card-info">#A02#</div>
  </div>
  <span class="t-Card-colorFill u-color #A06#"></span>
</a>

你将需要更改t-Card-icon部分,以便它引用图像源而不是Icon CSS类。

<li class="t-Cards-item is-active #A04#">
  <div class="t-Card">
<a href="#LINK#" class="t-Card-wrap" #A05#>
  *<div class="t-Card-icon u-color #A06#"><img src="#IMAGE#"></img> </div>*
  <div class="t-Card-titleWrap"><h3 class="t-Card-title">#TEXT#</h3><h4 class="t-Card-subtitle">#A07#</h4></div>
  <div class="t-Card-body">
    <div class="t-Card-desc">#A01#</div>
    <div class="t-Card-info">#A02#</div>
  </div>
  <span class="t-Card-colorFill u-color #A06#"></span>
</a>

将图像源更改为#IMAGE#将引用你在列表配置中为“图像/类别”字段中的该列表项设置的任何内容。