Are there plans to release a D7 version of this? It sounds like what I'm looking for. I haven't found a way to add formatting between fields in an rss feed from views without editing views_plugin_row_node_rss.inc. Is there another way? I haven't found how to access fields using the views-view-row-rss.tpl.php file.

Comments

rickmanelius’s picture

Could definitely use this. I'm in a bit of a pinch! :)

Anonymous’s picture

Hi all

This is the solution

Cause i could cross content betwen sites, in my case, i want to publicity next concerts, but wan't them to get out off my "view" by date, the concert date.

Best regards
ArchGalileu

www.gasparsantos.eu
www.quartetodouro.eu
www.cameratanovnorte.eu

paranojik’s picture

StatusFileSize
new12.24 KB

I've ported the module to D7. I also added the enclosure tag support (the code is a bit messy but it works). The geolocation part is untested.

Anonymous’s picture

Hi paranojik

Thanks for the patch, i allready apply but something not correct (i applyed manually)

I wait a little bit for build in GIT

I installed rss_formaters that was fast and accurate

Still want to have more details and so... views_rss

Best regards
ArchGalileu

Anonymous’s picture

Dummy thing, one of the patched files i didn't saved

I try today, after sleep

Sorry

Best regards
ArchGalileu

rwohleb’s picture

subscribe

paranojik’s picture

Title: Drupal 7? » Drupal 7 port
StatusFileSize
new13.16 KB

Fixed Undefined:$view:$row_index notice. This should now be almost complete.

jonasdowney’s picture

subscribe

sachbearbeiter’s picture

Title: Drupal 7 port » Views RSS: Drupal 7 port

subscribe

BenK’s picture

Subscribing

merilainen’s picture

+1
I can't get the patch to apply. I tried git apply -v drupal_7_port-1119948-7.patch but it gives me errors such as:

Checking patch views/views_plugin_style_rss_fields.inc...
Hunk #1 succeeded at 30 (offset 1 lines).
Hunk #2 succeeded at 65 (offset 1 lines).
Hunk #3 succeeded at 77 (offset 1 lines).
Hunk #4 succeeded at 166 (offset 1 lines).
Hunk #5 succeeded at 240 (offset 1 lines).
Hunk #6 succeeded at 281 (offset 1 lines).
Checking patch views/views_rss.views.inc...
error: while searching for:
<?php

/**
 * @file

I tried against beta5 and dev versions.

enkore’s picture

subscribing

Anders Hansen’s picture

After applying the path I can select the option RSS Feed - Fields in Views Feed, but nothing happens the activity wheel just spins and spins, anyone else experienced this ?

crymzyn’s picture

I have a similar issue as Anders Hansen has... It doesn't keep spinning, but it does not actually make the change from RSS Feed to RSS Feed - Fields. Any ideas?

peteruithoven’s picture

Subscribing

ccshannon’s picture

subscribe

nancydru’s picture

+2 (two customers)

mefisto75’s picture

tracking

sorensong’s picture

This is driving me insane.

DeadSuperHero’s picture

Can't get the patch to apply, same problem here as with #11.

Has anyone gotten the patched files, and gotten them to work yet?

paranojik’s picture

StatusFileSize
new29 KB

Apply against 6.x-1.x-dev. Not sure why the previous patch didn't work for you. This one is essentially the same, but reapplied just to be sure.

DeadSuperHero’s picture

Tried applying to 6.x-1.x-dev, used git apply -v drupal_7_port-1119948-21.patch from my views_rss directory.

Resulting output is:

error: while searching for:
name = "Views RSS"
description = "Provides views plugin for that allows RSS Feeds from Views to be use fields"
package = "Views Bonus Pack"
dependencies[] = views
core = "6.x"
error: patch failed: views_rss.info:1
error: views_rss.info: patch does not apply
Checking patch views_rss.module...

Am I doing something wrong here?

xjm’s picture

Status: Active » Needs review
jody lynn’s picture

Category: support » task
StatusFileSize
new12.21 KB

I cleaned up the patch to fix spacing issues and remove CVS tags and package-manager-related stuff.

Didn't test functionality.

JJSON’s picture

sub

audealexandre’s picture

I tried to apply the patch#24 to 6.x-1.x-dev, used cygdrive "patch -p0 view_rss-1119948.patch from my views_rss directory, but I am getting the following error:

"The next patch would delete the file a/views/view-rss-fields-item.tpl.php, which does not exist! Assume "

When I answer no and apply anyway, I then get the following message:

"can't find file to patch at input line 6" Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
----------------------------------
|diff --git a/views/views-view-views-rss-fields.tpl.php b/views/views-view-views-rss-fields.tpl.php
|deleted file mode 100644
|index 47ca842..0000000
|--- a/views/views-rss-fields-item.tpl.php
|+++ /dev/null

Am I doing something wrong ?

Many thanks for your help...

xjm’s picture

Try using -p1 instead of -p0.

MGParisi’s picture

subscribe

Edit - Updated with #24 patch, can not get the format to change
Edit 2 - Updated with #21 patch, could not get the format to change, cleared cache TWICE and it worked:)
Edit 3 - Adding an Image to the LINK field doesnt work (it puts the tag in HTML Encoding):( As far as I know there is no path to the Image tag:(

DeadSuperHero’s picture

Still having issues with applying the patch. The output is as follows after trying to do a "git apply -v [patchname]" for #24

views_rss-1119948.patch:152: trailing whitespace.
 * Implements hook_views_style_plugins(). 
Checking patch views/views-rss-fields-item.tpl.php...
error: views/views-rss-fields-item.tpl.php: No such file or directory
Checking patch views/views-view-views-rss-fields.tpl.php...
error: while searching for:
<?php // $Id$ ?>
<?php print "<?xml"; ?> version="1.0" encoding="utf-8" <?php print "?>"; ?>

<rss version="2.0" <?php print $namespaces ?>>

error: patch failed: views/views-view-views-rss-fields.tpl.php:1
error: views/views-view-views-rss-fields.tpl.php: patch does not apply
Checking patch views/views_plugin_style_rss_fields.inc...
error: while searching for:
        $this->view->feed_icon = '';
      }

      $this->view->feed_icon .= theme('feed_icon', $url, $title);
      drupal_add_link(array(
        'rel' => 'alternate',
        'type' => 'application/rss+xml',
        'title' => $title,
        'href' => $url
      ));
    }
  }
  
  
  function option_definition() {
    $options = parent::option_definition();

    $options['description'] = array(
      'contains' => array(
        'feed_description' => array('default' => ''),
      ),
    );
    
    $field_options = array();
    foreach ($this->xml_fields() as $k => $option) {
      $field_options[$k] = array('default' => '');
    }
    
    $options['fields'] = array(
      'contains' => $field_options,
    );
    
    $options['georss'] = array(
      'contains' => array(
        'lat' => array('default' => ''),

error: patch failed: views/views_plugin_style_rss_fields.inc:29
error: views/views_plugin_style_rss_fields.inc: patch does not apply
Checking patch views/views_rss.views.inc...
error: while searching for:
 */

/**
 * Implementation of hook_views_style_plugins(). Adds view types to views UI interface.
 */
function views_rss_views_plugins() {
  return array(

error: patch failed: views/views_rss.views.inc:6
error: views/views_rss.views.inc: patch does not apply
Checking patch views/views_rss_views_fields.theme.inc...
error: while searching for:
  else {
    $description = variable_get('site_mission', '');
  }
  $vars['description'] = theme('views_rss_feed_description', $description, $view);

  // Base URL for link tag
  global $base_url;

error: patch failed: views/views_rss_views_fields.theme.inc:24
error: views/views_rss_views_fields.theme.inc: patch does not apply
Checking patch views_rss.info...
error: while searching for:
description = "Provides views plugin for that allows RSS Feeds from Views to be use fields"
package = "Views Bonus Pack"
dependencies[] = views
core = "6.x"
error: patch failed: views_rss.info:2
error: views_rss.info: patch does not apply
Checking patch views_rss.module...
error: while searching for:
<?php

/**
 * Implementation of hook_views_api().
 */
function views_rss_views_api() {
  return array(
    'api' => 2,
    'path' => drupal_get_path('module', 'views_rss') .'/views',
  );
}

/**
 * Implementation of hook_theme().
 */
function views_rss_theme() {
  $path = drupal_get_path('module', 'views_rss');
  return array(
    'views_rss_fields_item' => array(
      'arguments' => array('item' => array()),
      'file' => 'views_rss_views_fields.theme.inc',
      'template' => 'views-rss-fields-item',
      'path' => "$path/views",
    ),
   'views_rss_feed_icon' => array(
      'arguments' => array('url', 'title', 'icon'),
      'file' => 'views_rss_views_fields.theme.inc',
      'path' => "$path/views",
    ),
    'views_rss_feed_description' => array(
       'arguments' => array('description', 'view'),
       'file' => 'views_rss_views_fields.theme.inc',
       'path' => "$path/views",
     ),
  );
}

error: patch failed: views_rss.module:1
error: views_rss.module: patch does not apply

Any ideas on what to do?

ParisLiakos’s picture

StatusFileSize
new32.67 KB

Hmm i applied the patch succesfully,i installed and enabled the module.but inside the Views UI if i change the format to
RSS Feed - Fields
nothing happens:/
btw i attached the patched version for thos that have trouble applying the patch

MGParisi’s picture

rootatwc... Try flushing the views cache TWICE...

maciej.zgadzaj’s picture

Version: 6.x-1.x-dev » 7.x-1.x-dev
Status: Needs review » Closed (fixed)

I have just committed initial D7 release based on patch from #21 by paranojik.

Tried it first with path from #24, but it was "cleaned up" too much, removing all files[] definitions from .info file - that's why changing feed format to "RSS Feed - Fields" did not work (actually, was not being saved).

Will be available as soon as drupal.org publishes the node (within next 12 hours, as per http://drupal.org/node/1068944).

ParisLiakos’s picture

Actually files[] is only for OOP classes.
No need to put .module, .tpl.php and others there.
Check the files[] section here: http://drupal.org/node/542202

maciej.zgadzaj’s picture

True, thanks for pointing that out rootatwc, took all of them from the patch. Removed now.

EndEd’s picture

Hi I'm getting this error using PHP fields in a Views with RSS Feed - Fields. The error shows after seeing a feed page (taxonomy/term/%/feed) and then returning to the normal site (front page for example). It also shows when editing the VIEWS display.

Notice: Undefined property: stdClass::$views_php_4 in views_plugin_style_rss_fields->map_rows() (line 187 of C:\damp\www\es_gshop\sites\all\modules\views_rss\views\views_plugin_style_rss_fields.inc).

EDIT: Wow, this was driving me mad. The problem was that you have to use the Value code and not the Output code to set values... sorry about that :)