我在使用XPages中的Bootcamp的導航欄中存在鏈接問題。我有一個用於develop.test.com的Internet站點文檔。該頁面上的主頁URL是Web/develop.nsf。我有數據庫的啓動選項設置爲xPage xpHomePage.xsp。當我去develop.test.com我的Bootstrap網站菜單顯示完美。我的問題是導航欄中的鏈接不一致。有時我會包含數據庫名稱,有時候不會。xPages:在使用Bootstrap的鏈接中缺少NSF
鏈接Abmelden(靠近代碼底部)轉換爲http://develop.test.com/web/develop.nsf?logout這是正確的。下拉式「Anwesenheiten/offen nach Name轉換爲http://develop.test.com/Web/xpAnwesendOffenNachName ==>不知怎的,這個develop.nsf缺失嗎?我只是不知道爲什麼。
我當然可以將NSF硬編碼到鏈接 - 看起來似乎沒有我的權利:O)
感謝你給予任何幫助
===========這裏是代碼
<?xml version="1.0" encoding="UTF-8"?>
<xp:view xmlns:xp="http://www.ibm.com/xsp/core">
<xp:div id="header" disableTheme="true">
<!-- This is the banner -->
<nav class="navbar-header navbar-inverse navbar-fixed-top" role="navigation" id="header">
<div class="container">
<div class="navbar-header">
<a class="navbar-brand" href="xpHomePage.xsp">
<xp:text escape="true" id="computedField1">
<xp:this.value><![CDATA[#{javascript:@DbTitle()}]]></xp:this.value>
</xp:text>
</a>
<!-- this is the hamburger menu that gets shown when the view is small enough -->
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
<span class="sr-only">Navigation umstellen</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
</div>
<!-- create a div so the header is collapsed when tiny -->
<div class="collapse navbar-collapse" id="header-menu">
<!-- and now the actual menu -->
<ul class="nav navbar-nav navbar-right navbar-inverse">
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-haspopup="true" aria-expanded="false">
Anwesenheiten
<span class="caret"></span>
</a>
<ul class="dropdown-menu">
<li>
<a href="xpAnwesendOffenNachName">offen nach Name</a>
</li>
<li>
<a href="xpAnwesendOffenNachStandort">offen nach Standort</a>
</li>
<li role="separator" class="divider"></li>
<li>
<a href="xpAnwesendFreiNachName">freigegeben nach Name</a>
</li>
<li>
<a href="xpAnwesendFreiNachStandort">freigegeben nach Standort</a>
</li>
<li>
<a href="xpAnwesendFreiNachMonat">freigegeben nach Monat</a>
</li>
</ul>
</li>
<li>
<a href="?logout">
<span class="glyphicon glyphicon-log-out"></span>
<xp:text>
<xp:this.value><![CDATA[#{javascript:" Abmelden"}]]></xp:this.value>
</xp:text>
</a>
</li>
</ul>
</div>
</div>
</nav>
</xp:div>
</xp:view>
我按照建議編譯了href(儘管我確實需要使用而不是,因爲這樣做不起作用)。感謝您的幫助(在這裏和Twitter上:o) –