wiki.zope.jp
SquishdotJMessage10
   
RecentChanges WikiHelp WikiPractice JumpSearch

SquishdotJMessage10 - Products/Squishdot/demo/messages/messages10.txt

Squishdot_attached - SquishdotSIG の Squishdotパッケージ付属文書の和訳プロジェクト

詳細はEditページからソースを見てね。



Squishdotのカスタマイズ(その4)
Zope開発
バッチ ランディンギン
butchland@yahoo.com 
1
火事場の底力で行こう(原文は「you-gotta-concentrate-extra-hard」)
ここはSquishdotのその4です。この投稿では、設定テーブルと他のSquishdotの
部分への操作用リンクをコントロールするいくつかの関連フォルダ、そして
同様にSquishボックス上の準固定の案内文について論じましょう。
%% 

テーブルの設定

ここには操作用リンクとSquishdotページの左右そして下方に表示される ボックスをコントロールする3つのテーブルがあります。 これらは、「TinyTable」プロダクトの実例です。その「TinyTable」はZope本体と 共には供給されていませんので、別途ダウンロードしなければなりません。 「TinyTable」プロダクトは、Zope Webサイトの Zopeプロダクツのダウンロード ページ(日本語対応版)より 入手可能です。(TinyTableで検索すると早い。TinyTablePlusも忘れずに!!。TinyTablePlusJPも参照。ここでは、「TinyTable」の説明となっているが今では、TinyTablePlusかTinyTablePlusJPのみを入れればよい。)

「rightbox_methods」と「misc_methods」フォルダ

これらのフォルダはSquishdotページの中に組み入れられるDTMLメソッドを含んでいます。 例えば、「rightbox_methods」フォルダは、メインページの右手のSquishボックスに 顔出しする「rightbox_items」テーブルに(前述のとおり)リストされています。 「misc_methods」フォルダは、(Squishdotページの上部に表示される広告(advertising)の バーナーをコントロールする)「advertising」の様な多種多様な「misc_methods」を 持っています。あなたは、「advertising」DTMLメソッドの中のイメージ表示部分のHTMLを 取除くことで、簡単にSquishdot広告を消すことが出来ます。あたなは、「quotation」 DTMLメソッド内の引用部分を変更することで、全Squishdot上に表示される引用を変える ことも出来ます。註記:我々は、fortuneクッキーのデータベースからランダムに 引用文を生成するプロダクトを今、運用しています。同様に引用文は自動更新が出来ます。 -- ものが少ないとそれだけ、管理しなれればならないものを減らすひとつ

あなたはあなた自身の「rightbox_methods」を加えるか、その上で、フォルダ内に今ある その中身を更新あるいは削除することが出来ます。 -- そう、「rightbox_items」内の 登録内容がDTMLメソッドと一致する様に更新しているか確かめよう

これで、Squishdotのカスタマイズ関係の記事シリーズは、完結です。

%%

以下が原文です。


Customizing Squishdot (Part 4) Zope Development Butch Landingin butchland@yahoo.com 1 you-gotta-concentrate-extra-hard This is part 4 on customizing Squishdot. This one discusses the configuration tables and some related folders which control the navigational links to other parts of Squishdot as well as the semi-static information displayed on the squishboxes. %%

The Configuration Tables

There are three (3) tables control what navigational links and boxes are displayed on the left, right and bottom parts of the Squishdot pages. These are instances of the TinyTable product that are not part of the basic Zope distribution and must be downloaded separately. The TinyTable product is available from the Download Zope Products page at the Zope website.

The rightbox_methods and misc_methods folder

These folders contain the DTML methods that are incorporated into the Squishdot pages. For example, the rightbox_methods folder contains those DTML methods that are listed in the rightbox_items table (discussed above) that show up as squishboxes on the right hand part of the main page. The misc_methods folder holds those various misc_methods such as advertising (which controls what advertising banner is displayed at the top of the Squishdot pages). You can easily turnoff the Squishdot by taking out the html that displays the image in the advertising DTML method. You can also change the quote displayed on all the Squishdot by updating it in the quotation DTML method.Note: We are currently working on a product that will randomly generate quotes from a fortune cookie database, so that the quotations can updated automatically -- one less thing you have to administer.

You can add your own rightbox_methods and/or update and/or delete the current ones in the folder -- just make sure you update the entries in the rightbox_items to match the DTML methods.

This concludes the series of articles on customizing Squishdot.

%%

Last edited Tue, 12 Sep 2006 14:23:31 +0900 Edit this page