xoopsのメモ

xfsectionの、記事を表示する部分をカスタマイズして、執筆者、発行日付、閲覧回数、サイズ、印刷、メールの表示制御を加える。


●次のファイルを修正

File: html/modules/xfsection/article.php
Line 259 add: $xoopsTpl->assign('showposter', false);

                                    • -
●管理メニュー/テンプレートセット・マネジャーで、XFsectionのテンプレートを編集する。(defaultの複製を作成し編集 サイトのテンプレートは複製を使うよう設定) xfsection_article.html に次の行を追加 <{if $showposter == true}>  執筆者、発行日付、閲覧回数、サイズ、印刷、メールを表示するコード <{/if}> 実例) <{if $showposter == true}> <tr> <td valign="top" class="head" colspan="2"> <table width="100%" border="0" cellspacing="0" cellpadding="0"> <tr> <td width="84%" class="itemPoster" align="left"><{$lang_author}> <{$article.poster}><br /><{$lang_published}>: <{$article.datetime}><br /><{$article.counter}><br /><{$article.size}></td> <td width="16%" align="right" valign="middle"><{$article.maillink}></td> </tr> </table> </td> </tr> <{/if}>

これで表示の制御ができる。 まる。