Optionally redirect a content to another url? I'm using drupal 7.  I have a content type called News Item.   On my home page, I have a block+view that lists the most recent news items.  What is shown is the title of the news item, a brief description, and a read more link to the news item.   When a person clicks on the read more link, it takes them to a page that displays the entire news item.

I want the ability to specify a redirect on some news items.  If a news item has a redirect, whenever a person clicks on the read more link in the home page, they will be redirected to a different url, NOT the url of the actual news item.  And if a person types in the url of the actual news item, they will be redirected to the different url instead.

How do I implement this kind of functionality?
I think you could handle this in a views row level template file. 

First set up a field for the redirect which is optional. Then add it to your view. Create the appropriate views row template file. In your template file print out the fields individually adding a bit of logic around the read more link:

&lt;?php if ($fields['news_url']): ?&gt;
  &lt;?php print $fields['news_url']; ?&gt;
&lt;?php else: ?&gt;
  &lt;?php print $fields['readmore']; ?&gt;
&lt;?php endif; ?&gt;


Obviously the field names are wrong but hopefully this gives you the idea.