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.
| Comment | File | Size | Author |
|---|---|---|---|
| patch_138 | 5.42 KB | moshe weitzman |
Comments
Comment #1
merlinofchaos commentedI 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!
Comment #2
moshe weitzman commentedthanks. 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.
Comment #3
merlinofchaos commentedThere 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.)
Comment #4
moshe weitzman commentedi fixed up 4.7 version and added this new plugin. edited module description accordingly.
Comment #5
merlinofchaos commentedThanks, Moshe!
This is precisely what I wanted the bonus pack for, and I love seeing these get added.
Comment #6
(not verified) commentedComment #7
rimma commentedHi 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