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.

CommentFileSizeAuthor
views_bonus_style_0.patch2.27 KBowen barton

Comments

owen barton’s picture

BTW thanks to Doug Green for writing this up initially :)

dmitrig01’s picture

Status: Needs review » Needs work

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?

wim leers’s picture

My only code remark is that the comments need punctuation.

As for a name… maybe views_bonus_special_top?

owen barton’s picture

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.

wim leers’s picture

Status: Needs work » Closed (fixed)

The Drupal 5 version of this module is no longer maintained.