SquishdotJMessage9 - Products/Squishdot/demo/messages/messages9.txt
Squishdot_attached - SquishdotSIG の Squishdotパッケージ付属文書の和訳プロジェクト
詳細はEditページからソースを見てね。
Squishdotのカスタマイズ(その3)
Zope開発
バッチ ランディンギン
butchland@yahoo.com
1
火事場の底力で行こう(原文は「you-gotta-concentrate-extra-hard」)
ここは、Squishdotのカスタマイズのその3です。ここでは、Squishdotの見栄えのカスタマイズで特に重要な「Properties」タブについて論じましょう。
%%
「Properties」タブ
「Properties」タブは、Squishdotの既定の見栄えを作るDTMLメソッドと密接な
関係にあるオプションを含んでいます。これらのプロパティの要素はたった1箇所
に定義して、Webデザイン上の共通性を表示します。そいつをちょいとひねると、
名前、色、構成その他、Squishdotが使うWebページのその他の特性を変更出来ます。
以下が現在既定で定義しているプロパティです。
(Squishdot内のDTMLメソッドを変更、追加または削除するときに
プロパティの追加と利用が出来ます。)
- title -- HTMLヘッダ内のタイトル要素として使われます。
- 「rss_title」「rss_description」「rss_image_url」は、コンテンツ
シンジケートの為に使われる あなたのRSS/RDFチャンネルに含まれるデータを
埋める為に使います。
- 配色. それぞれ個々に次の通りの役割を演じます:
- color1 - 背景のふちの色 (メインの表の外側) ←実際にはボトムメニューの文字色としても使われている。
- color2 - メインの背景色 (メインの表の内側)
- color3 - メインのテーマ職 (タイトルバーの背景色)
- color4 - squishボックスの背景色
- color5 - 「続きを読む(Read More)」ページの文字色
- linedot_image - color3で使用したものと同じ色の単一点イメージのURL
- drop_shadow - 影をつけるなら「1」、影なしなら「0」をセットします
- round_edge - 縁を丸くするなら「1」、角付きなら「0」をセットします
- title_image - サイトのイメージロゴのURLをセットします。 およそ
50ピクセルの高さと200ピクセル以上のの幅が望ましいことでしょう。
- site_name - あなたのWebサイトの名前。 たぶん、タイトルとは異なるでしょう。
- prevday_cnt - 過去記事のSquishボックスの表示日数の数。
- comment_spillover - ここにはしきい値をセットします。 このしきいを
超えるなら、コメントは、「続きを読む(Read More)」ページ内に表示される
(正確なタイトルとコメントの全文へのリンク付きの)要約形式のリストにされます。
- 「admin_address」と「admin_name」は既定のSquishボックス内で使用、
サイトの管理者への連絡用、同様に、Emailによる通知が可能なときの
送信情報の供給に使われます。
%%
以下は原文です。
Customizing Squishdot (Part 3)
Zope Development
Butch Landingin
butchland@yahoo.com
1
you-gotta-concentrate-extra-hard
This is part 3 on customizing Squishdot. This one discusses
the important Properties Tab, which is crucial in customizing
the look and feel of Squishdot.
%%
The Properties Tab
The Properties tab contains those options that are intimately
connected with the DTML methods that make up the default
look and feel of Squishdot. These properties factor out the
commonalities in the webpage design so that they are specified
only in one area. By tweaking them, you can modify the names,
color schemes, etc. and other characteristics of the webpages
that Squishdot uses.
The following are the properties currently defined by default
(you can choose to add properties and use them when you modify,
add or delete the DTML methods in Squishdot):
- title -- used in the title element in the HTML head
- rss_title, rss_description, rss_image_url are used to fill out
the data included in your RSS/RDF channel which is used for content syndication.
- the color scheme. Each one plays the following role:
- color1 - background border color (outside the main table)
- color2 - main background color (inside the main table)
- color3 - main theme color (background color of title bars)
- color4 - squishbox background color
- color5 - text color on "Read More" page
- linedot_image - url of a single pixel image of the same color as
the one used in color3
- drop_shadow - set to 1 if you want drop shadows, 0 for no drop shadows
- round_edge - set to 1 if you want rounded edges, 0 for square edges
- title_image - set to the url of the image logo of the site, which preferably
should be around 50 pixels in height and no more than 200 pixels wide.
- site_name - the name of your website. Maybe different from the title.
- prevday_cnt - this is number of previous days for which articles are displayed on
the Older Articles squishbox
- comment_spillover - this is the number that sets the threshold at which
if the number of comments exceed this threshold, the comments will be listed in summary
format (with just the title and a link to the full text of the comments) will be displayed
in the "Read More" page.
- the admin_address and admin_name are used in the default squishboxes for contacting the
sites administrator as well as providing the sender info when email notification is enabled.
%%