Author Topic: Remove category hierarchy in admin panel.  (Read 4118 times)

0 Members and 1 Guest are viewing this topic.

Offline Naveen

  • Newbie
  • *
  • Posts: 43
    • View Profile
Remove category hierarchy in admin panel.
« on: December 08, 2012, 04:34:47 PM »
Hi,

Guys, is it possible to remove the category hierarchy in the "Add/ edit images" panel? That will make it easy to find / type out the category name. Currently I can type/seach only the top level categories, so for sub categories, we need to scroll manually and remember to which top level category it belongs. I have around 300 categories with only 10 top level.

Thanx,

Naveen

Offline Naveen

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Remove category hierarchy in admin panel.
« Reply #1 on: December 12, 2012, 02:27:57 PM »
Hi,

What can I change in the below code to get rid of "--" in category listing?

Category 1
-- Category 2
-- Category 3

Changed to

Category 1
Category 2
Category 3


function get_type_dropdown($name$select 0$type "text"$field ""$default true$empty true$class ""$js "")
{
	
global 
$HTTP_POST_VARS;
	
if (isset(
$HTTP_POST_VARS[$name]))
	
{
	
	
$select = (int)$HTTP_POST_VARS[$name];
	
}
	
$return "<select name=\"" $name "\" class=\"categoryselect" $class "\" " $js ">\n";
	
$return .= get_type_dropdown_options($select$type$field$default$empty);
	
$return .= "</select>\n";
	
return 
$return;
}



Thanx

Offline Naveen

  • Newbie
  • *
  • Posts: 43
    • View Profile
Re: Remove category hierarchy in admin panel.
« Reply #2 on: February 20, 2013, 04:56:37 PM »
Hi,

In functions.php

find


$category_list 
.= ">".str_repeat("--"$depth 1).


Replace with


$category_list 
.= ">".str_repeat(""$depth 1).