Personal tools
You are here: Home Ploneサイト構築メモ Web Ring用のポートレットの作成
Document Actions

Web Ring用のポートレットの作成

by kt last modified 2007-05-07 12:59

自宅サーバWebRingに加入しているので、トップページにWebRing用のリンクを記述しておく必要がある。それをポートレットとして作成した。

自宅サーバWebリンク用のポートレットの作成

  • ZMIで「portal_skins」、「customize」を選ぶ。
  • 「Page Template」を追加する。
  • IDを入力し(今回は「jisabaWeblink」)し、「Add」を押す。
  • 追加したTemplateをクリックする。
  • Titleに適当なものを入力し、中身を次のようにし、「Save Changes」を押す。
    <html>
    <head>
    <title tal:content="template/title">The title</title>
    </head>
    <body>
    <div metal:define-macro="portlet">
    <dl class="portlet">
    <dt class="portletHeader">自宅サーバWeb Ring</dt> <!-- ポートレットのタイトルになる -->
    <dd class="portletItem">
    <div style="text-align: center;">
    <a href="http://park12.wakwak.com/~webring/">自宅サーバWebRing</a>
    <br />
    <a href="http://park12.wakwak.com/~webring/cgi-bin/ring/move.cgi?mode=all">サイト一覧</a>
    <br />
    <a href="http://park12.wakwak.com/~webring/cgi-bin/ring/move.cgi?mode=random">乱移動</a>
    <br />
    <a href="http://park12.wakwak.com/~webring/cgi-bin/ring/move.cgi?mode=back&amp;id=147">前</a>
    |ID=147 |
    <a href="http://park12.wakwak.com/~webring/cgi-bin/ring/move.cgi?mode=next&amp;id=147">次</a>
    <br />
    <a href="http://park12.wakwak.com/~webring/cgi-bin/ring/move.cgi?mode=list&amp;id=147">前後5表示</a>
    <br />
    </div>
    </dd>
    </dl>
    </div>
    </body>
    </html>

自宅サーバWebRing用のリンクのポートレットを、左側のスロットに表示させる。

  • ZMIのPloneサイトのトップで、「Properties」タグを選び、「left-slots」に「here/jisabaWeblink/macros/portlet」を追加する。
« November 2008 »
Su Mo Tu We Th Fr Sa
1
2345678
9101112131415
16171819202122
23242526272829
30
 

Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: