2011/10/14

EEA Faceted Navigation Installation

EEA Faceted Navigation 已經正式支援 Plone 4.x 版本,測試成功的安裝方式是,先到 zinstance/src 目錄下載程式碼:

$ cd ~/Plone/zinstance/src
$ svn co http://svn.plone.org/svn/collective/eea.facetednavigation/trunk eea.facetednavigation
$ svn co http://svn.plone.org/svn/collective/eea.jquery/trunk eea.jquery
$ svn co http://svn.plone.org/svn/collective/eea.faceted.vocabularies/trunk eea.faceted.vocabularies

編輯 develop.cfg 內容,下列是範例:

[sources]
    eea.facetednavigation = fs eea.facetednavigation
    eea.jquery = fs eea.jquery
    eea.faceted.vocabularies = fs eea.faceted.vocabularies

[buildout]
eggs +=
    eea.facetednavigation

zcml +=
    eea.facetednavigation-meta
    eea.facetednavigation-overrides
    eea.facetednavigation

執行 buildout 生效:

$ cd ~/Plone/zinstance
$ bin/buildout -c develop.cfg

啟用模組後,在目錄的 Action 下拉選單,可以看到 Enable faceted navigation 選項,生效後可以再到 Faceted settings 和 Faceted criteria 設定細項。

No comments: