COREBlog2のデフォルトの設定を変更できますか?

Up to Table of Contents

COREBlog2のデフォルト値は「COREBlog2/etc/coreblog2.conf.in」を編集・リネームすることで変更することができます。

変更するにはまずファイルを編集します。設定する内容については下記を参考にしてください。

<coreblog2>

# pingのタイムアウト値(秒数)
ping_timeout_default        30

# トップページに表示するエントリ数
top_entry_count_default     6

# ポートレットに表示するアイテム数
portlet_item_count_default  5

# バッチ処理をするときの、1ページあたりのアイテム数
batch_size_default          8

# pingを打たない
dont_send_ping_default      false

# Descriptionの長さ
# 「最近のエントリ」ポートレットでマウスオーバーの際に表示される記述の長さになります
description_length          128

# 左スロットに表示するポートレットの種類
<slots left_slots_default>
    slot here/portlet_cbadmin/macros/portlet
    slot here/portlet_coreblogcalendar/macros/portlet
    slot here/portlet_about/macros/portlet
    slot here/portlet_recent_entry/macros/portlet
    slot here/portlet_recent_comment/macros/portlet
    slot here/portlet_recent_trackback/macros/portlet
    slot here/portlet_category/macros/portlet
    slot here/portlet_coreblog2banner/macros/portlet
</slots>

# 右スロットに表示するポートレットの種類
<slots right_slots_default>
</slots>

# エントリに利用できるコンテンツタイプ
<contenttypes>
    allowed text/structured
    allowed text/x-rst
    allowed text/html
    allowed text/plain
</contenttypes>

</coreblog2>

編集し終えたら保存して、このファイルを「coreblog2.conf」とリネームします(最後の「.in」を取る)。

最後にZopeをリスタートすればこの変更が反映されます。

注意:これはあくまで「デフォルト値」を変更するだけですので、既存のCOREBlog2インスタンスやエントリはこの影響を受けません。