简体   繁体   English

Ektron CMS没有保存图像alt文本?

[英]Ektron CMS not saving image alt text?

At our university, we use Ektron CMS 8.02 SP2 and we are trying to bring our site up to 508 compliance. 在我们的大学,我们使用Ektron CMS 8.02 SP2,我们正努力使我们的网站符合508标准。

The editor does not save the image alt text in the xml after clicking the publish button. 单击“发布”按钮后,编辑器不会将图像替代文本保存在xml中。 This is causing a problem on our site because we must have image alt text for all of our images on the site. 这导致我们网站出现问题,因为我们必须为网站上的所有图片添加图片替代文字。 For now, the alt text is defaulting to the image source, but even that is not being stored in the xml for the individual pages that we need to add the text to. 目前,alt文本默认为图像源,但即使没有存储在我们需要添加文本的各个页面的xml中。

Is there anything we can do to resolve this? 有什么办法可以解决这个问题吗?

Things I have tried: 我尝试过的事情:

  1. Looking on Ektron's guide to using their (defunct) system. 查看Ektron使用其(已解散)系统的指南。
  2. Asking this question. 问这个问题。

If at all possible, I would like to avoid editing the xml template, but if that is the only way to fix this, then let me know. 如果可能的话,我想避免编辑xml模板,但如果这是解决这个问题的唯一方法,请告诉我。

The purpose of this question is to find alternative ways to do this without editing the xml template. 此问题的目的是在不编辑xml模板的情况下找到替代方法。

The image field in a Smart Form can be configured two ways. 智能表单中的图像字段可以通过两种方式配置。

Option 1: Value is an element 选项1:价值是一个要素

<FieldName>
    <img src="{path}" alt="{text}" />
</FieldName>

In this case, the Image attributes are preserved. 在这种情况下,将保留Image属性。

Option 2: Value is plain text 选项2:价值是纯文本

<FieldName>{path}</FieldName>

In this case, only the path is stored as a plain text string. 在这种情况下,只有路径存储为纯文本字符串。

Based on your description, I'd guess you're using Option 2 when you want Option 1. 根据您的描述,我猜您在使用选项1时正在使用选项2。

See red outlined area here: 在此处查看红色轮廓区域:

在此输入图像描述

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM