2017-10-18 57 views
0

我已經安裝了撇號「博客」套件,按照官方說明here。現在我想創建2個獨立的「子網站」,其中:你如何創建兩個(鏈接的)子站點?

1)博客網頁:

  • 站點1的博客頁面僅顯示有關網站的博客文章僅1
  • 站點2的博客頁面顯示有關網站的博客文章2

2)總頁數:

  • 站點1的一般網頁只顯示內容關於網站1
  • 站點2的一般網頁有關網站只顯示內容2

所以要解決的BLOG問題(1)我想做到以下幾點,這是上面的指示:

Another approach is to extend the modules, creating new modules and a completely separate admin bar item for managing the content. If you take this approach, you must set a distinct name property when configuring your subclass of apostrophe-blog, such as article. This will be value of type in the database for each blog post of this subclass.

不幸的是我不能工作究竟是如何做到這一點 - 我已經試過在app.js延長博客模塊的各種東西,但我不斷收到:

Error while constructing the XXX module Error: The module XXX has an alias, blog, that conflicts with a module registered earlier or a core Apostrophe feature.

+0

發佈原始和擴展的配置將會很有幫助。你有沒有嘗試在抱怨模塊中設置一個別名? –

回答

0

你可以只需製作兩個鏈接到不同標籤(blog1 & blog2在頁面屬性上定義)的「撇號博客」頁面(Blog1 & Blog2)。

現在,當您創建博客帖子時,您會選擇正確的標籤以使其顯示在右側的帖子中。