:::
XOOPS輕鬆架快速上手

有關無障礙網頁的事項。

discuss pic 2021-04-12 17:08:02

tad老師您好:

      近日利用FreeGo最新版檢測學校網頁,tadnew模組及其他模組一直出現

「XH1080401-具有連結目的之鏈結組件均需有鏈結文字,且其內容不得為空字串或空白...」

幾乎所有的公告都有此問題,仔細去探究後,問題的發生點,如下圖所示。

利用chrome看原始的html,發現連結目的之鏈結組件真的有問題,如下所示,

<nav class='toolbar_bootstrap_nav'>
 <ul>
   <li><a href='index.php' title='回首頁'><i class='fa fa-home'></i></a></li>

   <li ><a href='https://www.yjps.tp.edu.tw/chinese/modules/tadnews/index.php'>本站消息</a> </li>

    <li ><a href='https://www.yjps.tp.edu.tw/chinese/modules/tadnews/post.php'>發佈文章</a></li>

    <li ><a href='https://www.yjps.tp.edu.tw/chinese/modules/tadnews/page.php'>自訂頁面</a></li>

    <li ><a href='https://www.yjps.tp.edu.tw/chinese/modules/tadnews/my_news.php'>我的文章</a></li>
  </ul>
 </nav>
<!--TadNews Start-->
<div style="margin-bottom: 30px;">

小弟想到一個解決方法,就是把上述紅色圈起來圖示連結拿掉,可是小弟不熟xoops的架構,

找了好久一直沒找到,不知老師可提供位置所在或有其他解決方法,謝謝老師,打擾您了。

 

discuss pic 2021-04-12 22:03:24
tad

這我改一下 tadtools 中的函數就行了

 

discuss pic 2021-04-13 08:57:45

謝謝老師。

discuss pic 2021-04-13 09:03:03
tad

等不及就先下載、解壓,並上傳此附檔到 /modules/tadtools/class/ 下並覆蓋

discuss pic 2021-04-16 17:14:25

更新 tadtools/class/utility.php之後用freego掃描又有問題...

tadnews、tadgallery、tad_uploader在這個圖示

tad_web各plugin

 

tad_uploader切換顯示的按鈕

手工做的圖片連結區塊因為img標籤沒有alt=XX 全部爆掉,這個還算有辦法解,古代做的靜態網頁成千上萬個檔案怎麼可能處理啊...

discuss pic 2021-04-20 09:39:57
tad

唉~圖示不能當作鏈結文字嗎?

這無障礙真是讓我腦袋充滿障礙...

:::

https%3A%2F%2Fcampus-xoops.tn.edu.tw%2Fmodules%2Ftad_discuss%2Fdiscuss.php%3FDiscussID%3D7675%26BoardID%3D34%26g2p%3D1

計數器

今天: 289289289
昨天: 3438343834383438
總計: 7390618739061873906187390618739061873906187390618