COREBlog (1.0) 的搜尋功能預設只對 title、subtitle、body 等三個欄位作用,沒有包含 extend 欄位。剛好 coreblog-en mailing-list 上有人 提到 這個問題,套用其中的 patch 就可以了。

Entry.py 約 383 行處的:

text = self.title + "\n" + self.subtitle + "\n" + self.rendered_body

改成:

text = self.title + "\n" + self.subtitle + "\n" + self.rendered_body + "\n" + self.extend

重新啟動 Zope 或 refresh COREBlog。

Posted by yungyuc at 21:11, 0 comment, 0 trackback.
Add a trackback
Add a comment

Your name. (required)

Your personal website. (optional)

Your email address. Will not show in page. (suggested, but optional)

Text format is "Plain Text".

Enter "ixykH"
© hover year to navigate month: powered by django