Jump to content

How Get Category Name Cms In Tpl File


wpatrykw

Recommended Posts

Never seen that method, which class did you find it in?
Anyway, as far as I know you need to extend initContent of the cms controller, then use $this->cms->id_cms_category here

 $category = new CMSCategory($this->cms->id_cms_category, $context->language->id);

Using that, you can assign its $name  property to the template, then use it

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...