rabin 7 years ago
parent
commit
771338c6bc
1 changed files with 13 additions and 1 deletions
  1. 13 1
      content/database/news.php

+ 13 - 1
content/database/news.php

@@ -90,6 +90,18 @@ return array
 			'list'		=> true,
 		),
 
+		'subname'		=> array
+		(
+			'type' 		=> 'varchar-80',
+			'name' 		=> '子标题',
+			'default' 	=> '',
+			'desc' 		=> '子标题',
+			'match' 	=> 'is_string',
+			'update'	=> 'text',
+			//'search'	=> 'fulltext',
+			//'list'		=> true,
+		),
+
 		'info_id'		=> array
 		(
 			'type' 		=> 'int-11',
@@ -294,7 +306,7 @@ return array
 			'type' => 'all',
 			'order' => array('reorder' => 'desc', 'id' => 'desc'),
 			'page' => array(10, 'list'),
-			'col' => 'id, name, pic, top, cate_id, info_id, author_id, content, (num_view+num_add_view) as num_view, cdate',
+			'col' => 'id, name, subname,pic, top, cate_id, info_id, author_id, content, (num_view+num_add_view) as num_view, cdate',
 		),
 		
 		# 更新浏览量