マルチユーザ時のtop画面に、特定ユーザーの特定記事を表示します。 <$v.multiuser_top_id="miff"> <$v.multiuser_top_key="index"> <$v.template_dir = "<@theme_dir>hatena/"> <$v.theme = 'hatena_water'> デフォルトのテーマ <$v.system_template_dir = "<@theme_dir>hatena/"> <$v.system_template = 'hatena_water'> <$v.system_theme = 'hatena_water'> システムテーマ日記の場合はkeyに日記番号もしくはwiki用のkeyを設定.
<table style="width: 70%;"> <tr> <th><a href="<@thisurl>/id">ID</a></th> <!-- <th><a href="<@thisurl>/diaries">記事数</a></th> --> <!-- <th><a href="<@thisurl>/comments">コメント数</a></th> --> <!-- <th><a href="<@thisurl>/tbs">TB数</a></th> --> <th><a href="<@thisurl>/diary_tm">最終記事</a></th> <th><a href="<@thisurl>/comment_tm">最終コメント</a></th> <th><a href="<@thisurl>/tb_tm">最終TB</a></th> <!-- <th>この情報の生成日時</th> --> <@if(admin, "<th>設定</th>")> </tr> <@forexec(t, v.load_daybook_list(v.query_ary#1), begin)> <tr> <td><a href="<@t.url>"><@t.id></a></td> <!-- <td align="right"><span class="large"><@t.diaries></span></td> --> <!-- <td align="right"><span class="large"><@t.comments></span></td> --> <!-- <td align="right"><span class="large"><@t.tbs></span></td> --> <td align="center"><@if(t.diary_tm, tm_printf('%n/%e %H:%M', t.diary_tm, 0), '-')></td> <td align="center"><@if(t.comment_tm, tm_printf('%n/%e %H:%M', t.comment_tm, 0), '-')></td> <td align="center"><@if(t.tb_tm, tm_printf('%n/%e %H:%M', t.tb_tm, 0), '-')></td> <!-- <td align="center"><@if(t.all_tm, tm_printf('%n/%e %H:%M', t.all_tm, 0), '-')></td> --> <@if(admin, #'<td><a href="<@t.url>?menu">管理</a></td>')> </tr> <$end> </table>変えた部分は,コメントアウトにしている部分と,tableタグにstyleでwidthを指定している部分です.
<@><!--=====================================================================--> <@>日記帳リストの呼び出し <$ifjump(! v.multiuser_top_nolist, 'daybook_list')>daybook_listとなっている部分をdaybook_list2に変えればOK.
*1 : ファイル名を変えずに作業した場合は,このファイルをアップロードするだけで反映されます
マルチユーザ時のトップスケルトン(どちらか選択式) <$v.multiuser_top_skelton = "_multiuser_top"> #<$v.multiuser_top_skelton = "_multiuser_top2">しかし,反映されません.
マルチユーザー時のトップスケルトン <$v.multiuser_top_skelton = "_multiuser_top">同じ記述が載っていて上書きされているからです.