Strict Standards: Non-static method Protector::getInstance() should not be called statically in /home/suehirogari/suehirogari.com/xoops_trust_path/modules/protector/include/precheck_functions.php on line 12

Strict Standards: Non-static method XCube_Root::getSingleton() should not be called statically in /home/suehirogari/suehirogari.com/public_html/include/common.php on line 18

Deprecated: Assigning the return value of new by reference is deprecated in /home/suehirogari/suehirogari.com/public_html/modules/legacy/preload/Primary/SystemModuleInstall.class.php on line 117

Deprecated: Assigning the return value of new by reference is deprecated in /home/suehirogari/suehirogari.com/public_html/modules/legacy/preload/Primary/SystemModuleInstall.class.php on line 168

Deprecated: Assigning the return value of new by reference is deprecated in /home/suehirogari/suehirogari.com/public_html/modules/legacy/preload/Primary/SystemModuleInstall.class.php on line 186

Deprecated: Assigning the return value of new by reference is deprecated in /home/suehirogari/suehirogari.com/public_html/modules/legacy/preload/Primary/SiteClose.class.php on line 54

Deprecated: Assigning the return value of new by reference is deprecated in /home/suehirogari/suehirogari.com/public_html/modules/user/preload/Primary/Primary.class.php on line 65

Deprecated: Assigning the return value of new by reference is deprecated in /home/suehirogari/suehirogari.com/public_html/modules/user/preload/Primary/Primary.class.php on line 73

Deprecated: Non-static method XCube_Root::getSingleton() should not be called statically, assuming $this from incompatible context in /home/suehirogari/suehirogari.com/public_html/modules/user/preload/Primary/Primary.class.php on line 13
picoモジュールの 記事一覧ページを記事作成日時(昇順・降順)に変更カスタマイズする方法 | 社内SEのウェブ制作

2011.04.21xoopsズープス

picoモジュールの 記事一覧ページを記事作成日時(昇順・降順)に変更カスタマイズする方法

picoモジュールテンプレートに以下の表記を追加 pico_main_listcontents.html の以下の部分に<{php}>から始まる以下の部分を追加。

<ul class="pico_list_contents">

<{php}>
foreach ($this->_tpl_vars['contents'] as $key => $row) {
    $created_time[$key]  = $row['created_time'];
}
array_multisort( $created_time, SORT_DESC, $this->_tpl_vars['contents'] );
<{/php}>


<{foreach from=$contents item="content"}>
 


このカテゴリの人気記事



  • コメント (0)
  • トラックバック (0)
  • 閲覧 (25221)

トラックバック

トラックバックpingアドレス http://www.suehirogari.com/modules/blog/tb.php/187

コメントの投稿

コメント投稿に関するルール : コメントは全て承認が必要

キーワードでサイト内を検索
人気のエントリ