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
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.

AttachmentSize
views_bonus_style_0.patch2.27 KB

#1

Owen Barton - April 14, 2008 - 20:17

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

#2

dmitrig01 - May 10, 2008 - 14:59
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

Wim Leers - May 10, 2008 - 15:06

My only code remark is that the comments need punctuation.

As for a name… maybe views_bonus_special_top?

#4

Owen Barton - May 13, 2008 - 06:36

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

Wim Leers - November 3, 2009 - 17:05
Status:needs work» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.