在多重入口網站環境中 (系統中有一個以上的入口網站),使用 PAR 機制 (而非直接編輯 communityTemplateBaseDir 中的檔案) 以跨多重入口網站套用社群範本的變更。如此會讓所有入口網站擁有一組相同的社群範本。如果不想使用跨入口網站的同步環境,請使用為單一入口網站環境建立新範本中的指示。
可使用 psadmin export --type desktop 匯出桌面資料 (包含社群範本),然後將它匯出以編輯內容;也可只使用社群範本 (而不使用任何其他桌面資料) 從頭開始建立新的 PAR 結構。
依照為單一入口網站環境建立新範本中的指示編輯內容。
建立包含下列內容的新 PAR 檔案:
-+-- META-INF -- MANIFEST.MF | +-- pbfiles -+-- communityTemplateBaseDir -+-- template1 -+-- deleted.xml | | | | | +-- disabled.xml | | | | | +-- member.xml | | | | | +-- owner.xml | | | | | +-- visitor.xml | | | +-- template1.properties | | | +-- template1_en.properties | | | +-- template1_fr.properties | | | +-- ... | +-- static -- community -- images -- template1.gif
視需要編輯或新增內容。
建立新 PAR 檔案。
使用 psadmin import 子指令跨所有入口網站匯入 PAR 內容。
如果您匯出所有桌面資料,請注意 psadmin export 子指令將匯出所有桌面資料;如果您只使用社群範本從頭開始建立新 PAR 結構,則該指令只會匯出社群範本。
如需詳細資訊,請參閱「Sun Java System Portal Server 7.2 Command-Line Reference」中的「psadmin export」。