Hello , I would like to know how I can display only the subcategory name and not the parent's category name.
I have a menu item phoca gallery, where I would like to put all my photo galleries. So I created a Parent Category "Main_Cat" and 4 subcategories. I want all this 4 subcategories to be displayed in my menu with their name "Pencils (11)"
, "Pens(8)" , "Rubber(12)" , "Desks(9)" and not like "Main_Cat » Pencils (11) " etc. How can I prevent from parent gategory title to appear?
Also if there is another method to do present all my albums in one menu item without creating a parent category please mention.
I appreciate your help.
Phoca Gallery Only Subcategories name display
-
cost22
- Phoca Newbie

- Posts: 4
- Joined: 23 Jul 2012, 12:29
- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Gallery Only Subcategories name display
Hi, you can modify:
a) the SQL and recursive tree function directly - to not produce the tree like it is (see libraries folder - search for category tree)
b) or make some str_replace, etc function in output - in frontend to find and rename the parent category names and cut them.
Jan
a) the SQL and recursive tree function directly - to not produce the tree like it is (see libraries folder - search for category tree)
b) or make some str_replace, etc function in output - in frontend to find and rename the parent category names and cut them.
Jan
If you find Phoca extensions useful, please support the project
-
cost22
- Phoca Newbie

- Posts: 4
- Joined: 23 Jul 2012, 12:29
Re: Phoca Gallery Only Subcategories name display
Thank you for your quick response. Hmm, it was really simpler than I was trying to manage. I will just select the list category which chooses all the phoca gategories and I will not have a parent category. Your suggestion was the one(and demanding
) for my problem as I wrote it.
How can I change the font size of the Categories in the Category List Layout? I would like to make the font bigger.
Thank you.
How can I change the font size of the Categories in the Category List Layout? I would like to make the font bigger.
Thank you.
- Jan
- Phoca Hero

- Posts: 49150
- Joined: 10 Nov 2007, 18:23
- Location: Czech Republic
- Contact:
Re: Phoca Gallery Only Subcategories name display
Hi, this you can do per CSS.
Jan
Jan
If you find Phoca extensions useful, please support the project