I think your best bet is to: Redefine body and teaser completely by concatenating the result of iterating through the fields to create a custom output, including the two links put in here.
Victor
On Mon, Sep 14, 2009 at 12:34 PM, Tine Müller tinem@email.dk wrote:
I got help from Victor Kane which made a Module for me and now the links is functioning but now the problem is that the OLD info is not deleted. Can someone help about what to do, please?
*copenhagen_utilities.module*
<?php // $Id$ /** * @file * Utilities for the Copenhagen site */ /* * Implement hook_nodeapi */ function copenhagen_utilities_nodeapi(&$node, $op, $arg = 0) { switch ($op) { case 'rss item': $the_map_links = '<a href="' . $node->field_copenhagen_map[0][display_url] . $node->nid . '"><b>See the toilet on Copenhagen Map</a></b> <br><a href="' . $node->field_copenhagen_map_radius[0][display_url] . $node->nid . '"><b>See the toilet on Google Map width Radius</a></b>'; // add the map links to both body and teaser to cover both RSS feed configurations $node->teaser .= $the_map_links; $node->body .= $the_map_links; break; } } In the table content_type_copenhagen I have this informations if that helps you. field_copenhagen_map_url Copenhagen_map?nid= field_copenhagen_map_title Copenhagen map field_copenhagen_map_radius_url Copenhagen_map_radius?nid= field_copenhagen_map_radius_title Copenhagen map/radius /Tine ----- Original Message ----- *From:* Tine Müller <tinem@email.dk> *To:* support@drupal.org *Sent:* Friday, September 11, 2009 10:15 AM *Subject:* Re: [support] RSS Google Reader - field is above instead of inline-and I have a problems with links to the maps Can no one help, please? Is it "normal" that the RSS is showed in 2 lines instead of one which it is in the Content type? I made this changes node-copenhagen.tpl.php to get the links functioning on the site. <code> <?php print $content; print '<a href="' . $node->field_copenhagen_map[0][display_url] . $node->nid . '"><b>See the toilet on Copenhagen Map</a></b> <br><a href="' . $node->field_copenhagen_map_radius[0][display_url] . $node->nid . '"><b>See the toilet on Google Map width Radius</a></b>'; ?></code>
About the links in RSS I have been told that I need to write a Module and Hook but as a beginner I have not tried this yet. Have any of you such a Module and Hook which I can use or help me make it, please?
/Tine
----- Original Message ----- *From:* Tine Müller tinem@email.dk *To:* support@drupal.org *Sent:* Tuesday, September 08, 2009 8:01 AM *Subject:* [support] RSS Google Reader - field is above instead of inline -and I have a problems with links to the maps
This is my first mail to the mailing list so hope I do it the right way. :-)
At the bottom of this site http://www.tinemuller.dk/drupal/view/list/copenhagen it's inline but when you look in Google Reader with the RSS link http://www.tinemuller.dk/drupal/list_copenhagen_feed it's above. Can I do something to change this, please?
Also the links to the 2 maps are not opening up in the special InfoWindow as they do on list/copenhagen. Something to do to change this, please?
Hope you understand what I'm trying to get help to do. M.v.h. Tine Müller
http://tine_muller.homepage.dk/ http://www.findbiblioteket.dk/
[image: 0]
-- [ Drupal support list | http://lists.drupal.org/ ]
No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.81/2350 - Release Date: 09/06/09 17:51:00
[image: 0]
-- [ Drupal support list | http://lists.drupal.org/ ]
No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.409 / Virus Database: 270.13.90/2361 - Release Date: 09/10/09 18:12:00
[image: 0]
-- [ Drupal support list | http://lists.drupal.org/ ]