I want to have link to original article only in node stories. I want to remove this link from teaser, becuse there are many outgoing links on teaser`s and home page.
Pls tell me how to do that

Comments

aron novak’s picture

There is no direct user-friendly way to achieve this.
However I can suggest you to take a look on http://api.drupal.org/api/function/hook_link_alter/6 if you have some developer skills.
Anyway, you can remove those links via CSS as well, but maybe this is an evil way ;)

aron novak’s picture

Status: Active » Closed (fixed)

Not really a feedapi-related issue.

Anonymous’s picture

For future viewers an idea of how to use hool_link_alter
1. create a custom module
2. Add code similar to this

<?php
function yourCustomModuleName_link_alter(&$links, $node) {
//print '<pre>';
//print_r($links);
//print '</pre>'; 
	
 foreach ($links as $module => $value) {
  if (strstr($module, 'feedapi_original')) {
	// do what you want here
        eg
	$links[$module]['href'] = str_replace($fromURL,$toUrl, $links[$module]['href']);
	// print "link=".$links[$module]['href'];
  }
 }  
}
?>

3. enable your custom module