From 1d6905ea5d264dee3864186ad158d258e2627ce9 Mon Sep 17 00:00:00 2001 From: Cameron Date: Tue, 15 Jan 2013 23:19:34 -0800 Subject: [PATCH] Issue #75 Media-Manager Category SEF field added. --- e107_admin/image.php | 1 + e107_admin/sql/core_sql.php | 1 + e107_handlers/plugin_class.php | 1 + e107_plugins/gallery/plugin.xml | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/e107_admin/image.php b/e107_admin/image.php index 8cfc47178..d5ea849f9 100644 --- a/e107_admin/image.php +++ b/e107_admin/image.php @@ -160,6 +160,7 @@ class media_cat_ui extends e_admin_ui 'media_cat_category' => array('title'=> LAN_CATEGORY, 'type' => 'text', 'data'=>'str', 'width' => 'auto', 'thclass' => 'left', 'readonly'=>TRUE), 'media_cat_title' => array('title'=> LAN_TITLE, 'type' => 'text', 'width' => 'auto', 'thclass' => 'left', 'readonly'=>FALSE), + 'media_cat_sef' => array('title'=> LAN_SEFURL, 'type' => 'text', 'width' => 'auto', 'thclass' => 'left', 'readonly'=>FALSE), 'media_cat_diz' => array('title'=> LAN_DESCRIPTION, 'type' => 'bbarea', 'width' => '30%', 'readParms' => 'expand=...&truncate=150&bb=1','readonly'=>FALSE), // Display name 'media_cat_class' => array('title'=> LAN_VISIBILITY, 'type' => 'userclass', 'width' => 'auto', 'data' => 'int'), 'media_cat_order' => array('title'=> LAN_ORDER, 'type' => 'text', 'width' => '5%', 'thclass' => 'right', 'class'=> 'right' ), diff --git a/e107_admin/sql/core_sql.php b/e107_admin/sql/core_sql.php index 6f38ca66a..1b6f9bb16 100644 --- a/e107_admin/sql/core_sql.php +++ b/e107_admin/sql/core_sql.php @@ -148,6 +148,7 @@ CREATE TABLE core_media_cat ( media_cat_owner varchar(255) NOT NULL default '', media_cat_category varchar(255) NOT NULL default '', media_cat_title text NOT NULL, + media_cat_sef varchar(255) NOT NULL default '', media_cat_diz text NOT NULL, media_cat_class int(5) default '0', media_cat_image varchar(255) NOT NULL default '', diff --git a/e107_handlers/plugin_class.php b/e107_handlers/plugin_class.php index 388227b2c..dd3f40708 100644 --- a/e107_handlers/plugin_class.php +++ b/e107_handlers/plugin_class.php @@ -1839,6 +1839,7 @@ class e107plugin $data['owner'] = $folder; $data['category'] = $folder."_".$type; $data['title'] = $v['@value']; + $data['sef'] = vartrue($v['@attributes']['sef']); // $data['type'] = $v['@attributes']['type']; //TODO $data['class'] = 253; $status = e107::getMedia()->createCategory($data) ? E_MESSAGE_SUCCESS : E_MESSAGE_ERROR; diff --git a/e107_plugins/gallery/plugin.xml b/e107_plugins/gallery/plugin.xml index 3cb01d346..0014d46c9 100644 --- a/e107_plugins/gallery/plugin.xml +++ b/e107_plugins/gallery/plugin.xml @@ -12,7 +12,7 @@ - Gallery 1 + Gallery 1 800