Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#7 | row-style-output.png | 18.92 KB | Chi |
#4 | views_284768.patch | 9.19 KB | drewish |
Comments
Comment #1
merlinofchaos CreditAttribution: merlinofchaos commentedThis 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.
Comment #2
mradcliffeI 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?
Comment #3
merlinofchaos CreditAttribution: merlinofchaos commentedThere 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).
Comment #4
drewish CreditAttribution: drewish commentedHere'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.Comment #5
merlinofchaos CreditAttribution: merlinofchaos commentedAwesome! Thanks a lot, drewish! Committed.
Comment #7
Chi CreditAttribution: Chi commentedI have the same problem. By which way I can select a row style?
Comment #8
dawehner@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.
Comment #9
Chi CreditAttribution: Chi commentedI 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.
Comment #10
broonHi,
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.
Comment #11
nizer CreditAttribution: nizer commentedI 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!
Comment #12
nizer CreditAttribution: nizer commentedps: 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).
Comment #13
Funkwarrior CreditAttribution: Funkwarrior commentedI'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:
Thank you.
Comment #14
dazz CreditAttribution: dazz commentedSame problem when i use Content | Teaser in show, does work when selecting Field. Both with format Unformatted list.
Comment #15
Jaypan CreditAttribution: Jaypan commentedI'm seeing the same issue.
Comment #16
MustangGB CreditAttribution: MustangGB commentedGetting the same thing in 7.x-3.3 so bumping back to "bug report" for another review.
Comment #17
stewsnoozeSurely 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
Comment #18
ygerasimov CreditAttribution: ygerasimov commentedI 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?