Error when posting with services content form

khm's picture
khm
Thu, 11/05/2015 - 06:29
#1
Error when posting with services content form

Notice: Undefined variable: category in include() (line 93 of /sites/all/themes/md_max/templates/node/node.tpl.php).

phuonght's picture
phuonght
Thu, 11/05/2015 - 22:22

Hi,

Please open file node.preprocess.inc, below line

 $vars['theme_hook_suggestions'][] = 'node' . $vars['node']->type . '' . $vars['view_mode']; 

add the following code:

//Service
if ($vars['node']->type == 'service') {
// process tags
$vars['category'] = '';
// process tags
$vars['tag'] = '';
}

If other content types have same problem, you could also use the code but remember to replace "Service" with name of content type.

Log in or register to post comments
Have More Idea?

We are here to build your website!

No Universal solution fits all special business requirements. Our experienced team is ready with ideas and state-of-the-art technical solutions to consult the best solution within your budget.