Example:
http://www.sportbusiness.com/news/160518/ian-todd-to-return-to-img-agency

Do you have any idea why the service links are just linking to sportbusiness.com/node and not the full path (either node/[nid] or the nice alias)?

Comments

nicholasthompson’s picture

This is my phptemplate...

function _phptemplate_variables($hook, $vars) {
  $vars = array();
  if ($hook == 'page') {
    // This is the only important line
    $vars['head_title'] = page_title_page_get_title();
  } else if($hook == 'node') {
    //Service Links
    if (module_exist('service_links')) {
      $vars['service_links'] = theme('links', service_links_render($vars['node']));
    }

    //Ad Adsense MAM to non-teaser nodes
    if(!$vars['teaser']) {
      //no teaser, so grab the adsense MAM
      foreach (array('mam') as $region) {
        $vars[$region] = theme('blocks', $region);
      }
    }
  }
  return $vars;
}
nicholasthompson’s picture

Priority: Critical » Normal

I added it as a block instead of printing the service links and the links work now - why does printing the service links in the node.tpl.php file not work?

frjo’s picture

Sorry to say, but I don't have any idea way it's not working for you. To be sure I just tested inserting the service links in node.tpl.php and on my test site it works as it should.

Maybe the theme is annoyed over all the ads it has to carry ;-).

frjo’s picture

Status: Active » Closed (fixed)