A couple of nice style plugins - "top node teaser, rest as a list" and "top node full, rest as a teaser"
Owen Barton - April 14, 2008 - 20:16
| Project: | Views Bonus Pack |
| Version: | 5.x-1.x-dev |
| Component: | Code |
| Category: | feature request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
This adds 2 new views styles - the first is to have the first node as a teaser, and the rest as a list - i.e.
First node title
- First node body, blah blah blah* Second node title
* Third node title
* Fourth node title
The other is similar, but has the first node as the full node, and the rest as teasers. I left the module as a fairly generic 'style' module, because these are both pretty simple, and it seems like they could share a module with some other style plugins.
| Attachment | Size |
|---|---|
| views_bonus_style_0.patch | 2.27 KB |

#1
BTW thanks to Doug Green for writing this up initially :)
#2
I almost comitted these when I realized that the name views_bonus_style is too general. Can you think of anything else? views_bonus_different_top?
#3
My only code remark is that the comments need punctuation.
As for a name… maybe views_bonus_special_top?
#4
Not sure about the name - we could potentially have quite a few views_style plugins - is there any reason they can't share a module? It seems likely lower overhead to have a little unused cruft in a still small module than have a dozen new tiny modules each with very similar things.
Anyway - I don't care much either way, but I think it's worth considering.
#5
The Drupal 5 version of this module is no longer maintained.