Note: This may be better suited in the Documentation portion of the Component.

Click on "theme information" for a feed view. Output for Row style Output is

Row style output: .tpl.php, --appsrecent.tpl.php, --feed.tpl.php, --appsrecent--feed.tpl.php, --feed-1.tpl.php, --appsrecent--feed-1.tpl.php

Is this correct? I am not familiar with views code, but it does not seem to make sense. What is the correct prefix for this? (views-view-feed.tpl.php?) Is there any documentation (that's a support request I know).

I apologize if this is referenced in some documentation elsewhere.

CommentFileSizeAuthor
#7 row-style-output.png18.92 KBChi
#4 views_284768.patch9.19 KBdrewish
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

merlinofchaos’s picture

Status: Active » Closed (works as designed)

This is because by default feed displays do not have a valid row style (there is no valid row style that works for all types) so this information will not be valid until you select a row style.

mradcliffe’s picture

Category: bug » support
Status: Closed (works as designed) » Active

I see. Thank you for clarifying. Changing to support request as this isn't a bug at all.

I'm having a hard time finding the rss theming documentation. Any recommendations?

merlinofchaos’s picture

Status: Active » Postponed

There isn't a great deal you can do to theme RSS at this time. I realized when I looked at the code again last week that I could do a better job providing a template and allow this to be themed and even add fields, but this is something that will come post Views 2.0.

Right now, if you have a 'node' view or a 'comment' view, you can set the row style on the Feed display appropriately, and other view types don't have valid feed types at all. It's possible that future plugins may change/enhance this functionality. (I would love it if someone would write a better feed plugin).

drewish’s picture

Status: Postponed » Needs review
FileSize
9.19 KB

Here's a patch that moves the RSS row items into their own template.

I tried to standardize the way that the items are built and leave it with just link, title, description, and element fields specified fields. This might be the wrong approach but my feeling is that everything should really be rendered down into the elements array.

I'm also curious if views_plugin_row_comment_rss::render() should really be using check_markup($comment->comment, $comment->format, FALSE) to build the description... i didn't add that, just moved it around.

merlinofchaos’s picture

Status: Needs review » Fixed

Awesome! Thanks a lot, drewish! Committed.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Chi’s picture

FileSize
18.92 KB

I have the same problem. By which way I can select a row style?

dawehner’s picture

Version: 6.x-2.0-rc1 » 7.x-3.0-rc1
Component: feed displays » User interface
Status: Closed (fixed) » Postponed (maintainer needs more info)

@Chi
Can you please provide some more informations? For example it would be kind of nice to understand what you actually did, so someone can give you feedback about it.

Chi’s picture

Status: Postponed (maintainer needs more info) » Active

I just made fresh views installation and enabled default «Taxonomy term view» provided by views module. Now if I click theme information link I get screen attached in #7.

broon’s picture

Hi,

I'm facing the same issue with 3.0-RC1. I created several views (page layout) and left it with "Unformatted list". Now, I'd like to change the display behaviour (I actually want to include comment count). The theming information popup looks like the one mentioned above: "Row style output: .tpl.php, --test.tpl.php, --default.tpl.php, --page.tpl.php, --test--page.tpl.php". When I change the format to HTML list, it still shows no prefixes.

nizer’s picture

I have the same issue... upgraded to 3.0 and have my (node) view's format set to unformatted list and showing content/teaser. When scanning the template files, it gives me:

Row style output: .tpl.php, --home.tpl.php, --default.tpl.php, --default.tpl.php, --page.tpl.php, --home--page.tpl.php

Used to work prior to the views update... Any ideas would be greatly appreciated!

nizer’s picture

ps: I also tried changing the row style to html list, but rescanning the template files ended up showing the same results as with row style unformated list.

ps2: Display style is page (so not feed as in the initial issue #1).

Funkwarrior’s picture

I've same problem here, using both 7.x-3.1 and 7.x-3.x-dev on clear installations. Trying to make a view of articles (only with title, body and 1 image; no tags). Every display styles fails. I trying to search where is the index returned 0 without success (drupal-php newbie); Anyway, there's the message log:

location: admin/structure/views/ajax/display/latest_news/page/analyze-theme
referrer: admin/structure/views/view/latest_news/edit?render=overlay
messagge: Notice: Undefined index: theme in views_plugin->theme_functions() (line 501 of /Users/user/Sites/dru701/sites/all/modules/views/includes/plugins.inc).

Thank you.

dazz’s picture

Same problem when i use Content | Teaser in show, does work when selecting Field. Both with format Unformatted list.

Jaypan’s picture

I'm seeing the same issue.

MustangGB’s picture

Version: 7.x-3.0-rc1 » 7.x-3.3
Category: support » bug

Getting the same thing in 7.x-3.3 so bumping back to "bug report" for another review.

stewsnooze’s picture

Surely it is showing no entries for Content | Teaser because it would render using the node-.tpl.php or node.tpl.php where nodes are concerned for instance.

I guess the user interface should make that clear

ygerasimov’s picture

I agree completely with @stewsnooze here. For teasers view it doesn't make sense to show "Row style output" templates as these are not fields and we do not need fields wrapper. Maybe we should simply hide these "Row style output" options?