COREBlog2のコメントとかトラックバックとかのポートレットをちょこっとカスタマイズ

CSSに関する部分

  • portlet_global_recent_comment
  • portlet_global_recent_trackback

のidがいずれも

<dl class="portlet" id="portlet-global-recententry">

となっていておかしい。

ので

<dl class="portlet" id="portlet-global-recentcomment">
<dl class="portlet" id="portlet-global-recenttrackback">

と変更した方がよい。

もしくはすべてを

<dl class="portlet portlet-global-cbrecentactions">

などという感じでclassにしてしまうとか。

けど実は私は使っていなかったりする(;`Д´)

開発時にコピーして編集したけど直し忘れた、という感じなんでしょうね。

ZPTに関する部分

  • portlet_recent_comment
  • portlet_recent_trackback

のhrefが

            <a href=""
tal:attributes="href entry/absolute_url;
title obj/Title"
tal:content="obj/Title">
Comment title
</a>
            <a href=""
tal:condition="python:entry"
tal:attributes="href entry/absolute_url;
title obj/Description"
tal:content="obj/Title">
Trackback title
</a>

となっているのですが、これだとリンクのとんだ先がentryの先頭になってしまいます。

例えばコメントを読もうと思ったのにクリックした先がコメントの先頭になってないのは何か変な感じ。

(ホントは画面をスクロールさせるのがめんどくさいだけなんですが…)

ので、こいつらを

tal:attributes="href string:${entry/absolute_url}#comments;

とか

tal:attributes="href string:${entry/absolute_url}#trackbacks;

とかにしてやりました。

きっとこれでちょっぴりハッピーになれるはず。

カテゴリ
COREBlog2 COREBlog2
Plone Plone
トラックバック用URL:
http://nagosui.org:8080/Nagosui/COREBlog2/customization-of-coreblog2-portlet/tbping
コメントを追加

下のフォームに記入してコメントを追加できます。平文テキスト形式。

(必須)
(必須)
(必須)
(Required)
Enter the word

このBlogについて
Plone, Zope, Pythonなどのトピックについてのメモです。
カテゴリ
Plone (99)
Plone Products (23)
COREBlog2 (31)
COREBlog1 (29)
ReadingCOREBlog (7)
Zope (66)
Turbogears (18)
Django (12)
Python (26)
Linux (32)
Nagosui (13)
Design (34)
Misc (49)
moblog (5)
最近のエントリ
Plone3.2+その他もろもろのレシピ nyusuke 2009年01月07日
さらばファッキンKDDI nyusuke 2008年12月10日
Xoopsのテーマをいじる1 nyusuke 2008年12月08日
第13回名古屋大学吹奏楽団定期演奏会 nyusuke 2008年12月07日
最近のコメント
Re:WebデザイナーのためのDjangoはじめの一歩 nyusuke 2007年06月01日
Re:WebデザイナーのためのDjangoはじめの一歩 pateo 2007年05月31日
Re:東海Python Workshop 01終了 nyusuke 2007年05月31日
Re:東海Python Workshop 01終了 kfuruhata 2007年05月30日
Geek Test
I am 30% Geek.
Geek? Yes, but at least I got social skills.
You probably work in computers, or a history deptartment at a college. You never really fit in with the "normal" crowd. But you have friends, and this is a good thing.