Download & Extend

A couple of nice style plugins - "top node teaser, rest as a list" and "top node full, rest as a teaser"

Project:Views Bonus Pack
Version:5.x-1.x-dev
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:closed (fixed)

Issue Summary

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.

AttachmentSize
views_bonus_style_0.patch2.27 KB

Comments

#1

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

#2

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?

#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

Status:needs work» closed (fixed)

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