Add option to display module title in board list

This commit is contained in:
Kijin Sung 2020-10-29 22:47:28 +09:00
parent e8b6db01fc
commit 46ac583a83
6 changed files with 80 additions and 7 deletions

View file

@ -24,7 +24,7 @@ class boardModel extends module
$list_config = ModuleModel::getModulePartConfig('board', $module_srl);
if(!is_array($list_config) || count($list_config) <= 0)
{
$list_config = array('no', 'title', 'nick_name','regdate','readed_count');
$list_config = array('no', 'title', 'nick_name', 'regdate', 'readed_count');
}
// get the extra variables
@ -57,7 +57,7 @@ class boardModel extends module
public static function getDefaultListConfig($module_srl)
{
// add virtual srl, title, registered date, update date, nickname, ID, name, readed count, voted count etc.
$virtual_vars = array( 'no', 'title', 'regdate', 'last_update', 'last_post', 'nick_name',
$virtual_vars = array( 'no', 'title', 'regdate', 'last_update', 'last_post', 'module_title', 'nick_name',
'user_id', 'user_name', 'readed_count', 'voted_count', 'blamed_count', 'thumbnail', 'summary', 'comment_status');
foreach($virtual_vars as $key)
{