diff --git a/app/Http/Controllers/Admin/AdminContentController.php b/app/Http/Controllers/Admin/AdminContentController.php index d2709961d..305d917f2 100644 --- a/app/Http/Controllers/Admin/AdminContentController.php +++ b/app/Http/Controllers/Admin/AdminContentController.php @@ -64,7 +64,7 @@ class AdminContentController extends BasePageController case 'add': $meta_title = 'Content Add'; $content['status'] = Content::STATUS_ENABLED; - $content['contenttype'] = Content::TYPE_ARTICLE; + $content['contenttype'] = Content::TYPE_USEFUL; break; case 'submit': @@ -90,7 +90,6 @@ class AdminContentController extends BasePageController $contenttypelist = [ Content::TYPE_USEFUL => 'Useful Link', - Content::TYPE_ARTICLE => 'Article', Content::TYPE_INDEX => 'Homepage' ]; @@ -149,7 +148,7 @@ class AdminContentController extends BasePageController 'body' => $data['body'] ?? '', 'metadescription' => $data['metadescription'] ?? '', 'metakeywords' => $data['metakeywords'] ?? '', - 'contenttype' => $data['contenttype'] ?? Content::TYPE_ARTICLE, + 'contenttype' => $data['contenttype'] ?? Content::TYPE_USEFUL, 'status' => $data['status'] ?? Content::STATUS_ENABLED, 'ordinal' => $data['ordinal'] ?? 0, 'created_at' => now(), @@ -174,7 +173,7 @@ class AdminContentController extends BasePageController 'body' => $data['body'] ?? '', 'metadescription' => $data['metadescription'] ?? '', 'metakeywords' => $data['metakeywords'] ?? '', - 'contenttype' => $data['contenttype'] ?? Content::TYPE_ARTICLE, + 'contenttype' => $data['contenttype'] ?? Content::TYPE_USEFUL, 'status' => $data['status'] ?? Content::STATUS_ENABLED, 'ordinal' => $data['ordinal'] ?? 0, 'updated_at' => now(), diff --git a/app/Models/Content.php b/app/Models/Content.php index f76ed83e3..374e541e4 100644 --- a/app/Models/Content.php +++ b/app/Models/Content.php @@ -44,7 +44,6 @@ class Content extends Model { // Content type constants public const TYPE_USEFUL = 1; - public const TYPE_ARTICLE = 2; public const TYPE_INDEX = 3; // Status constants @@ -136,7 +135,6 @@ class Content extends Model { return match ($this->contenttype) { self::TYPE_USEFUL => 'Useful Link', - self::TYPE_ARTICLE => 'Article', self::TYPE_INDEX => 'Homepage', default => 'Unknown', };