by
Papasan
—
posted at
2008-02-13 19:27
last modified
2008-02-13 19:55
DTMLドキュメントは、ちょっとしたものを表示するには簡単でいいのですが、Ploneから表示しようとすると工夫が必要です。
ルック&フィールを統一しようとしてPloneのプロダクトのWindowsZを使っていましたが、表示しようとするDTMLによってはスクロールバーやスライドバーが表示されてしまいカッコワルイ。
そこで、次のようなZPTとDTMLドキュメントをPlone内に作ってみました。
- ZPT(dtml_document_view):
<!-- DTMLドキュメントを簡単にPloneから表示するためのテスト --> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en" metal:use-macro="here/main_template/macros/master" i18n:domain="plone"> <body> <metal:main fill-slot="main"> <tal:main-macro metal:define-macro="main"> <div metal:use-macro="here/document_actions/macros/document_actions"> Document actions (print, sendto etc) </div> <h1 tal:content="here/title_or_id|nothing" class="documentFirstHeading"> Document title </h1> <div class="documentDescription" tal:define="description here/Description" tal:content="structure python: description.replace('\n', '<br />')" tal:condition="here/Description"> Description </div> <span tal:content="structure here" /> </tal:main-macro> </metal:main> </body> </html> - DTMLドキュメント(test_dtml):
<dtml-with weblogUpdates> <dtml-var index_html_body> </dtml-with>
表示例
- http://papasan.org/papablog/473/tbping











































































自分的には、メモリーも増設して、
Mac miniの処理速度でも遅くは無いんだけど、
如何せん、HDDの容量不足でこんな事になっちょります。
いいえ、分かりますよ(笑。
Mac miniに3.5"HDDを乗っけるなんて英さんでなきゃできません。楽しみにしておりまーす。