Closed (fixed)
Project:
FeedAPI
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
13 Oct 2007 at 18:05 UTC
Updated:
20 Nov 2007 at 17:57 UTC
I am retrieving the original link from the data that feedapi passes to node.tpl.php via the link hook - but I would like some additional data.
I suspect maybe I do this in template.php ? If so, I was wondering if you have sample handy of how to do it.
I am wondering if it would be more efficient or easlier to hack link_hook in feedapi and add more data to the links?
Thanks for any help,
D.
Comments
Comment #1
alex_b commentedWhat data would you like to have accessible in node.tpl.php ?
Comment #2
Rob T commentedI want the title of the feed item to link to the original article.
My feed items are saved as "feed_items" nodes. I duplicated my node.tpl.php and created a node-feed_items.tpl.php, but I can"t figure out what to replace "$node_url" with in the following snippet...
The original article's data comes through just after this with the $links call, but I'm having no luck with the myriad of variables I've tried.
Any suggestions would be appreciated.
Comment #3
momper commentedhello rob t
i hope, i understand you the right way - try this
greetings momper
Comment #4
Rob T commentedThat worked! Thanks so much, momper.
Comment #5
alex_b commented