Page 1 of 1

Edit automatically generated name of subcategory

Posted: 27 Feb 2012, 15:54
by get12
Hello,

I am trying to find a way to edit the automatically generated name of subcategory.

I mean, by default, when you create a subcategory, it's name is generated in the following way:
Events-event1
I want to remove the category name (events), so that it becomes just subcategoryname (event1)

Is it possible?

Thank you

Re: Edit automatically generated name of subcategory

Posted: 28 Feb 2012, 22:25
by Jan
Hi, subcategory is called only as it should but in tree it is displayed with parent category. To hide parent category, this needs to be modified in the code.

Jan

Re: Edit automatically generated name of subcategory

Posted: 31 Jan 2013, 09:07
by Artemis909
Edit file components\com_phocagallery\views\categories\tmpl\default_catimg.php (if you are using category and image setting)

echo '</a></div></td>';
//echo '<td><a href="'.$this->categories[$i]->link.'">'.$this->categories[$i]->title.'</a>&nbsp;'; -with category parent name
echo '<td><a href="'.$this->categories[$i]->link.'">'.$this->categories[$i]->title_self.'</a> '; //without parent name

if ($this->categories[$i]->numlinks > 0) {echo '<span class="small">('.$this->categories[$i]->numlinks.')</span>';}