Closed (fixed)
Project:
Drupal Commons
Component:
Theme
Priority:
Major
Category:
Task
Assigned:
Unassigned
Reporter:
Created:
28 Sep 2012 at 04:43 UTC
Updated:
1 May 2013 at 16:00 UTC
Jump to comment: Most recent file
Hm. This block (found on anon + auth home page, and possibly other places) is tricky:

What it looks like is we essentially need another "view mode" rather than node teasers (assuming node teasers are used on main listing pages like /events, etc.) because events, posts, and polls don't share the same fields, so this can't be a field type view.
For now, what I decided to do was just put type, post title, and comment count, as that's better than nothing... but definitely not implemented to spec yet.
| Comment | File | Size | Author |
|---|---|---|---|
| #5 | featured.png | 117.88 KB | rosemeria |
| #2 | commons_featured_progress.png | 15.56 KB | ezra-g |
| commons_home_featured.png | 21.75 KB | webchick |
Comments
Comment #0.0
webchickx
Comment #1
ezra-g commentedThanks. I think we can use the "hide if empty" option and still have a fielded view. In fact, I think we're already doing this for event nodes in the view.
Leaving this issue open and bumping to "Major" priority to test and complete this.
Comment #2
ezra-g commentedGood call!
I've made the following improvements to this block:
- # of comments field is now labeled and uses format_plural()
- # of attendees field is now present and uses format_plural(). This required patching the Views integration for the registration module: #1838930: The "slots used" Views field should be a child of views_handler_field_numeric.
- There's now a handy content type class so we can add those lovely icons to each row in the view
- The block title is now "Featured on this site"
However, we're somewhat blocked on #1504202: Allow entering of custom date format in Views field handlers for formatting the date field to spec. Marking needs work pending that and also pending themeing.
Here's a screenshot of the current state of this block:
Commits involved here:
http://drupalcode.org/project/commons.git/commit/f4cf81e
http://drupalcode.org/project/commons_featured.git/commit/42a9847
http://drupalcode.org/project/commons_featured.git/commit/630b18f
Comment #3
ezra-g commentedComment #4
ay13 commentedI am not sure what this issue is asking. can i get a little better direction and a page where this shows up.
Thanks.
Comment #5
rosemeria commentedHi Andrew,
Hope this helps - see attached image
I created a snapshot of all content types as they are currently showing on the Featured content pane.
Used Feb-14 dev version
** In Drupal Commons prototype "featured on this site" only shows up on the homepage.
Comment #6
ezra-g commentedThanks for the helpful screenshot, rosemeria! setting back to "active."
Comment #7
Zarabadoo commentedI rejiggered the styling for these icons to make it more generic and related to a common set of classes. I then performed php magic/blasphemy and applied said classes to views.
http://drupalcode.org/project/commons_origins.git/commit/b5b1b33
Comment #8
Zarabadoo commentedComment #9.0
(not verified) commentedx