0

http://www.google.comのような外部リンクを指すアイテムをナビゲーションに追加しようとしていますが、その方法に関するドキュメントが見つかりません。

これは、ナビゲーションを管理する方法のサンプルです。navigation.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>
4

1 に答える 1

1

Gatein のバージョンによっては、これは実際には不可能です... 私自身も同じ状況に遭遇しました。「uri」要素 ( https://docs.jboss.org/gatein/portal/3.1.0-FINAL/reference-guide/en-US/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 オブジェクトには拡張されていません。層

于 2016-06-24T20:40:18.900 に答える