Closed (works as designed)
Project:
SimpleFeed
Version:
5.x-1.0
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
22 Jan 2008 at 23:57 UTC
Updated:
26 Sep 2008 at 04:29 UTC
Is there a way to skip viewing the node, and instead, go right from the teaser to the external site when the visitor clicks on the title? I’ve tried setting this up in Views, but it’s not working for me. I was able to use the SimpleFeed Feed Item: Article title field to get a link to the original site, but the teaser didn’t show when I used the Node:Body field. I was using list view, so fields should work.
Thanks,
Lisa Gielczyk
Comments
Comment #1
gielczyk commentedComment #2
m3avrck commentedYes this is possible by overriding the node-content-feed_item.tpl.php (or similarly named, something like that) and setting the node title to link to feed source instead of the node.
You can see this in action here: http://www.momblognetwork.com/content/28-wrong-ways-28-right-ways-care-n... clicking on node title takes you to the source (could be applied in teaser/list view but we chose not to).
Comment #3
Slim Pickens commentedDoes anyone have an example of how this might be done?
I've spent a number of hours trying to achieve this to no avail.
I would much rather my feed item node title link directly to the feed source - it's also more respectful of the original blogger.
Cheers
Comment #4
planctus commentedIt's easy...
you just need to create a template file called node-feed_item.tpl.php saving it into your template directory.
You can do this just by copying the node-tpl.php and rename it, the only thing you need to do is to change the
with something like this:
<h2><a href="<?php print $node->url; ?>" title="<?php print $title ?>"><?php print $title ?></a></h2>This will lead the users to the feed source whan they click on your feed item title..
See you
Da.
Comment #5
m3avrck commented