Index: branches/5.2.x/admin_templates/articles/articles_edit.tpl =================================================================== --- branches/5.2.x/admin_templates/articles/articles_edit.tpl +++ branches/5.2.x/admin_templates/articles/articles_edit.tpl @@ -68,10 +68,16 @@ - +
- + + + +
@@ -129,4 +135,4 @@ } - \ No newline at end of file + Index: branches/5.2.x/units/articles/articles_config.php =================================================================== --- branches/5.2.x/units/articles/articles_config.php +++ branches/5.2.x/units/articles/articles_config.php @@ -460,6 +460,11 @@ 'IsPop' => Array ('type' => 'int', 'default' => 0), 'CachedNavbar' => Array ('type' => 'string', 'default' => ''), 'ParentPath' => Array ('type' => 'string', 'default' => ''), + 'GenerateExcerpt' => array( + 'type' => 'int', + 'formatter' => 'kOptionsFormatter', 'options' => array(1 => 'la_Yes', 0 => 'la_No'), 'use_phrases' => 1, + 'default' => 0, + ), // for primary image 'AltName' => Array ('type' => 'string', 'default' => ''), Index: branches/5.2.x/units/articles/articles_event_handler.php =================================================================== --- branches/5.2.x/units/articles/articles_event_handler.php +++ branches/5.2.x/units/articles/articles_event_handler.php @@ -459,7 +459,7 @@ $object = $event->getObject(); /* @var $object kDBItem */ - if ( !$object->GetField('Excerpt') || $this->Application->GetVar('generate_excerpt') ) { + if ( !$object->GetField('Excerpt') || $object->GetDBField('GenerateExcerpt') ) { $excerpt = strip_tags($object->GetField('Body'));