News:

You may pay someone to create your store, or you visit our seminar and become a professional yourself with the silver certification

Main Menu

How to get category name?

Started by renny79, April 18, 2012, 05:03:58 AM

Previous topic - Next topic

renny79

Hello,

I am trying to get category name of the current category but I am trying to get it from my template index.php page. Any help is highly appreciated.

Thank you,
Renny

PRO

Quote from: renny79 on April 18, 2012, 05:03:58 AM
Hello,

I am trying to get category name of the current category but I am trying to get it from my template index.php page. Any help is highly appreciated.

Thank you,
Renny

You are not going to be able to do this without some coding.

where do you want to display it?

what are you trying to do?

renny79

If you could give me the snippet of the codes I can figure it out.

I want to display the category name on the header of the page that is rendered before the component.

Thanks!

PRO

Quote from: renny79 on April 18, 2012, 15:01:51 PM
If you could give me the snippet of the codes I can figure it out.

I want to display the category name on the header of the page that is rendered before the component.

Thanks!

I do not know the code,

You will have to query the database I believe,.


No reason to do all that though,

I would do it another way.

With module, etc.