问题描述
我正在为 TYPO3 使用扩展程序 blog,并且我正在尝试调整“添加评论”表单以获得更好的可访问性。
CommentFormFactory:88 在表单底部创建一些额外的文本(参见 http://prntscr.com/w6yymz ),我只想在其中添加一个 aria-hidden
属性。
这是提到的php代码:
$explanationText = $page->createElement('headline','StaticText');
$explanationText->setProperty('text',LocalizationUtility::translate('label.required.field','blog') . ' ' . LocalizationUtility::translate('label.required.field.explanation','blog'));
我试图简单地在那里添加 HTML 标签,但没有奏效。
我还找到了教程 how to add a custom form element 和 this TYPO3 issue。我的问题:是否真的没有简单的单行方式来添加单个 html 属性?
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)