內容簡介
使用 Optimized Dropdown Menus Widget,您可以創建可被搜尋或被搜尋引擎爬行器「讀取」的下拉式選單。
那它是如何運作的?
基本上,它的運作模式如下:
菜單的標記代碼印刷為一個普通的嵌套式菜單,例如:
<ul>
<li><a href="http://example.com/page">某個隨機頁面</a></li>
<li><a href="http://example.com/page-another">另一個頁面</a></li>
<li><a href="http://example.com/yao">再多一個</a></li>
</ul>
由於大多數瀏覽器支持 JavaScript,因此使用小工具,標記將被轉換為類似以下的形式:
<select>
<option value="http://example.com/page">某個隨機頁面</option>
...
<option value="http://example.com/page">其他選項</option>
</select>
這裡的棘手之處在於,搜索引擎通常不解釋 JavaScript,它們只能掃描嵌套式菜單。這樣它們就能夠找到這些頁面,而且很可能也會爬行這些頁面。
ODM 還支援一系列的小工具特定設定:
控制鏈接是開啟於新視窗或同一視窗
選擇使用 HTML5/XHTML 標記菜單
下一版本的特色
即將會有一個選項,讓開發者可以透過程式碼使用相同的功能,例如:
翻譯
目前可用以下翻譯版本:
西班牙文 (es_ES) - 感謝Ognjen Djuraskovic
塞爾維亞文 (sr_RS) - 感謝Ognjen Djuraskovic
外掛標籤
開發者團隊
原文外掛簡介
By using Optimized Dropdown Menus Widget, you’ll be able to create dropdown menus that are searchable or “spiderable” by search engine bots.
So how does it work?
Basically, it works like this:
The menu’s markup code is being printed as an ordinary nested menu. e.g.
Since most browsers support JavaScript, using the widget, the markup would be translated into something like this
The tricky part here is, that search engines do not usually interpret JavaScript, all they will be able to scan is the nested menu. That way they will reach out for those pages, and most probably will crawl those pages as well.
ODM also supports a range of per-widget settings:
Control whether links will be open in new window or in the same window
Choose to use HTML5/XHTML markup for the menu
Features set for the next versions
Soon there will be an option for developers to use the same functionality via the code. e.g.
Translations
Currently, these translations are available:
Spanish (es_ES) – in courtesy of Ognjen Djuraskovic
Serbian (sr_RS) – in courtesy of Ognjen Djuraskovic
