Page 1 of 1
Display only catogory name
Posted: 14 Jan 2011, 19:25
by orsomannaro
I use the plugin to display the list of subcategories of a specific category.
What I see now:
cat1 >> subcat1
cat1 >> subcat2
cat1 >> subcat3
...
What I would like to see:
subcat1
subcat2
subcat3
...
Is it possible? How can I do?
Thank.
Re: Display only catogory name
Posted: 16 Jan 2011, 14:59
by Jan
Hi, then you need to customize the php code (to not display the whole part of category - subcategory)
Jan
Re: Display only catogory name
Posted: 20 Jan 2011, 12:28
by orsomannaro
Jan wrote:Hi, then you need to customize the php code (to not display the whole part of category - subcategory)
Jan
Ok. I arranged the plugins/content/phocagallery.php code like this:
find:
Code: Select all
. $category->title.'</a> <span class="small">('.$category->numlinks.')</span>'
replace with:
Code: Select all
. substr($category->title, strrpos($category->title,"»") + 7).'</a> <span class="small">('.$category->numlinks.')</span>'
it seem to work (if all categories are subcategories!).
Re: Display only catogory name
Posted: 21 Jan 2011, 21:48
by Jan
Ok, great to hear it.
Jan