the inspiration for this style plugin comes from the middle column of http://sfbay.craigslist.org/. there classifieds are listed by category in a 3 column layout. categories are often grouped under a top level category. i have the patch running at http://sailorville.mosheweitzman.com/panels_by_term/1. not much content there yet.

so here is my patch for this layout. i'm not so sure i've implemented this in optimum way. here are my goals:
- provide a summary view for a given vocab. drilling down from this summary view should so a standard taxonomy powered teaser list view (with depth=9 instead of depth=1). in the summary view, we list all terms, regardless of whether they have data in them.
- provide this summary formatter in a way that it can be reused by others. i chose style plugin but maybe theme function may be better? the detail theme is just a wrapper around the standard views presentation.
- provide a default view so folks might see what the heck i'm doing.

feedback welcome.

CommentFileSizeAuthor
patch_1385.42 KBmoshe weitzman

Comments

merlinofchaos’s picture

Status: Needs review » Reviewed & tested by the community

I don't see anything glaringly wrong in a quick pass. I haven't been too concerned with the bonus pack code being beautiful, just so it's not hideously broken, and it looks like your example is running pretty well. It's also really useful.

I'd say commit it!

moshe weitzman’s picture

thanks. i committed to trunk, including a port to 5.0 for views_bonus. is possible that parts are broken since panels is not ported.

i need permissions from earl in order to commit to 4.7. have the patch ready.

i was able to get rid of my silly detail function by pointing directly at views_view_teasers(). also added a bit of spacing between the tables.

merlinofchaos’s picture

There is a 5.0 port of panels. I think at the moment that views_bonus is merely tagged (as I often do) -- for 5.0, the one thing I noticed for sure in your code is that _taxonomy_depth is gone and replaced by str_repeat.

I've gone ahead and branched, hopefully this gives you access to commit to both the 4.7 and TRUNK. This means we should edit the module description to say that trunk/cvs is now for 5.0 if your changes are not cross-compatible. (I haven't tried the bonus pack on 5 yet, so I don't know whether or not it needs any fixing up.)

moshe weitzman’s picture

Status: Reviewed & tested by the community » Fixed

i fixed up 4.7 version and added this new plugin. edited module description accordingly.

merlinofchaos’s picture

Thanks, Moshe!

This is precisely what I wanted the bonus pack for, and I love seeing these get added.

Anonymous’s picture

Status: Fixed » Closed (fixed)
rimma’s picture

Hi moshe,

I know this thread has been there for a long time. I see you website. It is what I really want and currently, there is no a module can fulfill these functions.

If possible, I hope you can talk a little bit about how did you do it.
Thanks