wpatrykw Posted March 13, 2016 Share Posted March 13, 2016 Hi, how can i get category name (CMS) in .tpl file? I have: Name: Delivery (id: 7) Lang id: 1 getCMSTitle(1,7,true); not working Thank yout for your help! Link to comment Share on other sites More sharing options...
NemoPS Posted March 14, 2016 Share Posted March 14, 2016 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 More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now