Hm. This block (found on anon + auth home page, and possibly other places) is tricky:

commons_home_featured.png

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.

Comments

webchick’s picture

Issue summary: View changes

x

ezra-g’s picture

Priority: Normal » Major

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.

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

ezra-g’s picture

Status: Active » Needs work
StatusFileSize
new15.56 KB

Good 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:

commons_featured_progress.png

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

ezra-g’s picture

Component: Code » Theme
ay13’s picture

Status: Needs work » Postponed (maintainer needs more info)

I am not sure what this issue is asking. can i get a little better direction and a page where this shows up.

Thanks.

rosemeria’s picture

StatusFileSize
new117.88 KB

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

ezra-g’s picture

Category: feature » task
Status: Postponed (maintainer needs more info) » Active

Thanks for the helpful screenshot, rosemeria! setting back to "active."

Zarabadoo’s picture

I 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

Zarabadoo’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

Anonymous’s picture

Issue summary: View changes

x