[英]How to create link to external domain in Gatein navigation?
我正在嘗試將一個項目添加到導航中,該項目指向一個外部鏈接,例如http://www.google.com ,但是我找不到任何有關操作方法的文檔。
這是我如何使用導航.xml文件管理導航的示例:
<?xml version="1.0" encoding="UTF-8"?>
<node-navigation xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.gatein.org/xml/ns/gatein_objects_1_4 http://www.gatein.org/xml/ns/gatein_objects_1_4"
xmlns="http://www.gatein.org/xml/ns/gatein_objects_1_4">
<priority>1</priority>
<page-nodes>
<node>
<name>WebFileHome</name>
<label>WebFile User Resources</label>
<page-reference>111::222::aaa</page-reference>
</node>
<!-- My WebFile Tools - Law Firm -->
<node>
<name>MyWebFileTools</name>
<label>My WebFile Tools</label>
<page-reference>111::222::bbb</page-reference>
<node>
<name>UserAdmin</name>
<label>User Administration</label>
<page-reference>111::222::ccc</page-reference>
</node>
<node>
<name>Claim</name>
<label>Claim Summary</label>
<visibility>HIDDEN</visibility>
<page-reference>111::222::ddd</page-reference>
</node>
</node>
</page-nodes>
</node-navigation>
根據您的Gatein版本,這確實是不可能的...我本人也遇到過同樣的情況。 過去可以通過“ uri”元素( https://docs.jboss.org/gatein/portal/3.1.0-FINAL/reference-guide/zh-CN/html_single/#sect-Reference_Guide-Tips-Direct_External_Links ),但我認為他們將此功能放回了較早的版本(我認為是3.2.x)。
我認為在以后的版本(3.8.x)中已重新引入了另一種處理用例的方法,但我們尚未升級到該版本(在3.7.1上)。 為了在3.8.x上運行,我認為您需要使用不再基於Tomcat的Wildfly,因此我們的許多代碼無法正常工作,因此我無法進行驗證。
請注意,MOP層(持久性)具有此功能(org.gatein.mop.core.api.workspace.URLLink與org.gatein.mop.core.api.workspace.PageLink),但並未擴展到eXo對象層
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.