我們創建了一個Gatein門戶網站,當我們使用以下網址訪問網站時。如何從頭標記中刪除Gatein門戶網站容器資源
localhost:8080/portal/myportal,從gatein門戶容器加載頭標籤的資源很少。
請參考Gatein Portal容器包含的門戶網站腳本的以下來源。請讓我知道如何從頭標記中移除這些門戶網站容器資源。
在此先感謝
<script type="text/javascript">
var require = {
"shim" : {
"PORTLET/web/SiteMapPortlet" : {
"deps" : [ "SHARED/bootstrap" ]
},
"PORTLET/dashboard/TabbedDashboardPortlet" : {
"deps" : [ "SHARED/bootstrap" ]
},
"PORTLET/web/IFramePortlet" : {
"deps" : [ "SHARED/bootstrap" ]
}
},
"paths" : {
"SHARED/uiMaskLayer" : "/portal/scripts/3.6.3.Final-redhat-4/GROUP/baseGRP-en-min",
"SHARED/uiCalendar" : "/portal/scripts/3.6.3.Final-redhat-4/GROUP/webuiExtGRP-min",
"SHARED/navigation" : "/portal/scripts/3.6.3.Final-redhat-4/SHARED/navigation-min",
"SHARED/org_gatein_responsive_menu" : "/portal/scripts/3.6.3.Final-redhat-4/SHARED/org_gatein_responsive_menu-min",
"SHARED/dropdownmenu_jquery" : "/portal/scripts/3.6.3.Final-redhat-4/SHARED/dropdownmenu_jquery-min",
"PORTLET/dashboard/TabbedDashboardPortlet" : "/portal/scripts/3.6.3.Final-redhat-4/PORTLET/dashboard:TabbedDashboardPortlet-min",
"SHARED/org_gatein_jppinformation" : "/portal/scripts/3.6.3.Final-redhat-4/SHARED/org_gatein_jppinformation-min",
"SHARED/gadget" : "/portal/scripts/3.6.3.Final-redhat-4/SHARED/gadget-en-min",
"SHARED/org_gatein_features" : "/portal/scripts/3.6.3.Final-redhat-4/SHARED/org_gatein_features-min",
"SHARED/common" : "/portal/scripts/3.6.3.Final-redhat-4/SHARED/common-min",
"SHARED/portalDragDrop" : "/portal/scripts/3.6.3.Final-redhat-4/GROUP/portalGRP-min",
"SHARED/webui-ext" : "/portal/scripts/3.6.3.Final-redhat-4/GROUP/webuiExtGRP-min",
"PORTLET/web/SiteMapPortlet" : "/portal/scripts/3.6.3.Final-redhat-4/PORTLET/web:SiteMapPortlet-min",
"SHARED/org_gatein_navigation" : "/portal/scripts/3.6.3.Final-redhat-4/SHARED/org_gatein_navigation-min",
"SHARED/base" : "/portal/scripts/3.6.3.Final-redhat-4/GROUP/baseGRP-en-min",
"SHARED/bootstrap" : "/portal/scripts/3.6.3.Final-redhat-4/SHARED/bootstrap-min",
"SHARED/portal" : "/portal/scripts/3.6.3.Final-redhat-4/GROUP/portalGRP-min",
"SHARED/I18NMessage" : "/portal/scripts/3.6.3.Final-redhat-4/GROUP/baseGRP-en-min",
"SHARED/org_gatein_responsive_collapsiblecontainer" : "/portal/scripts/3.6.3.Final-redhat-4/SHARED/org_gatein_responsive_collapsiblecontainer-min",
"SHARED/toggleContainer" : "/portal/scripts/3.6.3.Final-redhat-4/SHARED/toggleContainer-min",
"SHARED/jpp_info_modernizr" : "/portal/scripts/3.6.3.Final-redhat-4/SHARED/jpp_info_modernizr-min",
"SHARED/portalRequest" : "/portal/scripts/3.6.3.Final-redhat-4/GROUP/baseGRP-en-min",
"SHARED/upload" : "/portal/scripts/3.6.3.Final-redhat-4/GROUP/webuiExtGRP-min",
"SHARED/portalControl" : "/portal/scripts/3.6.3.Final-redhat-4/GROUP/webuiGRP-min",
"SHARED/dashboard" : "/portal/scripts/3.6.3.Final-redhat-4/SHARED/dashboard-min",
"SHARED/modernizr" : "/portal/scripts/3.6.3.Final-redhat-4/SHARED/modernizr-min",
"SHARED/uiVirtualList" : "/portal/scripts/3.6.3.Final-redhat-4/GROUP/webuiExtGRP-min",
"PORTLET/web/IFramePortlet" : "/portal/scripts/3.6.3.Final-redhat-4/PORTLET/web:IFramePortlet-min",
"SHARED/portalComposer" : "/portal/scripts/3.6.3.Final-redhat-4/GROUP/portalGRP-min",
"SHARED/popupCategory" : "/portal/scripts/3.6.3.Final-redhat-4/GROUP/baseGRP-en-min",
"SHARED/org_gatein_responsive_dropdownmenu_jquery" : "/portal/scripts/3.6.3.Final-redhat-4/SHARED/org_gatein_responsive_dropdownmenu_jquery-min",
"SHARED/uiMaskWorkspace" : "/portal/scripts/3.6.3.Final-redhat-4/GROUP/baseGRP-en-min",
"SHARED/uiPopup" : "/portal/scripts/3.6.3.Final-redhat-4/GROUP/baseGRP-en-min",
"SHARED/uiForm" : "/portal/scripts/3.6.3.Final-redhat-4/GROUP/webuiGRP-min",
"SHARED/skin" : "/portal/scripts/3.6.3.Final-redhat-4/GROUP/baseGRP-en-min",
"SHARED/uiPopupWindow" : "/portal/scripts/3.6.3.Final-redhat-4/GROUP/webuiGRP-min",
"SHARED/jquery" : "/portal/scripts/3.6.3.Final-redhat-4/SHARED/jquery-min",
"SHARED/selectors" : "/portal/scripts/3.6.3.Final-redhat-4/GROUP/webuiGRP-min",
"SHARED/uiRightClickPopupMenu" : "/portal/scripts/3.6.3.Final-redhat-4/GROUP/webuiExtGRP-min"
}
};
感謝您的澄清。我們正計劃按照我們的企業標準來託管TAM WebSeal的應用程序,當我們這樣做時; TAM爲該網址添加了一個額外的路口名稱。 www.domain.com/junction/portal/myportal。由於這個原因,head標籤中可用的url沒有正確解析,並且它創建了新的jsession id。你知道是否有辦法通過一些配置來自定義js資源url?例如「/portal/scripts/3.6.3.Final-redhat-4/GROUP/baseGRP-en-min.js」 – user3208810
如果您需要將/ junction結合前綴添加到js路徑,我想更好的方法是覆蓋JavascriptConfigService組件。在「require」var中設置的JSON由該服務的getJSConfig方法返回。因此,您可以創建自己的JavascriptConfigService組件(例如MyJavascriptConfigService),該組件可以擴展org.exoplatform.web.application.javascript.JavascriptConfigService並覆蓋方法getJSConfig以添加路徑前綴。然後在gatein配置中聲明你的組件。但我從來沒有用過WebSeal,所以我不知道它是否有效。 – Thomas