Both currently use "There are no results." Let's provide friendlier text.

Comments

lisarex’s picture

How about "Nothing to see here yet!"

We could even prompt them to create some content.

siva_epari’s picture

+1 "Prompt to create some content"

ezra-g’s picture

Priority: Normal » Major

Bumping priority to "major" so we can address this before 3.0.

lisarex’s picture

It makes sense to provide custom text for all the content types we ship with; coming up with a generic one for all is more difficult because it has to be shorter, e.g.
"Nothing to see here yet! Create content if you've got something to share."

All tab: "Nothing to see here yet! Got something to share? Write something!"

Posts: "No posts here yet. Write a post if you've got something to say."

Wiki: "No wikis here yet. Start a wiki if you want to collaborate on a document with others."

mmilano’s picture

There's action phrases for each content type defined in the "post" drop down.

One approach would be to re-use those phrases like so:

Be the first to [linked action text].

Action phrases:

  • create a poll
  • create a post
  • ask a question
  • list an event
blacklabel_tom’s picture

+1 for #4

Topcheese’s picture

+1 for #5

rosemeria’s picture

+1 for #4

autolyst’s picture

+1 for 5 .... now we are tied

blacklabel_tom’s picture

We need a tie breaker!

lisarex’s picture

Ha! Let's go with #5 since it's a little more elegant.

The full list is based on the prototype

  • Be the first to create a post
  • Be the first to ask a question
  • Be the first to start a wiki
  • Be the first to create a call for ideas
  • Be the first to list an event
  • Be the first to create a poll

Screenshot from prototype
http://invis.io/UHBT1DYX

mmilano’s picture

I looked into implementing this a little further...

We defined what users who can post should see, but we also need to consider users who cannot post. For this, we could follow the lead that Wiki's and Q&A have.

No **plural content type name** have been added to this group.

The technical problem we need to work through is this:

The no results text is the output of a view, and we do not have a dependency on the PHP text format. We cannot use conditional logic directly in the no results text field.

The path of least resistance would be to go with the text format that Wiki's and Q&A use (as defined above).

The other option would be to create replacement tokens that could be used in the no results text field. We should probably discuss it a little more considering this post before anyone spends time going down this path.

Thoughts?

Topcheese’s picture

Well the path of least resistance sounds good. I'm not sure this would make a difference, but I would think that it would be best to avoid having to use tokens because of things like this Entity tokens duplicates field tokens created by token module, and this token types are not defined but have tokens: taxonomy_term

ezra-g’s picture

Title: Better empty text for 'all' and 'posts' tab » Better empty text for 'all', 'posts' 'documents' and 'polls' tab.
Status: Active » Fixed

I created #1920360: Include calls to action in empty text for the more complex task of generating appropriate calls to action and taking into account factors such as group privacy.

I've committed static empty text consistent with the "No [content type] have been added to this group yet." text.

http://drupalcode.org/project/commons_polls.git/commitdiff/e73cd05?hp=92...
http://drupalcode.org/project/commons_documents.git/commitdiff/68bc91a?h...
http://drupalcode.org/project/commons_posts.git/commitdiff/ea196c7?hp=4d...
http://drupalcode.org/project/commons_groups.git/commitdiff/66643af?hp=7...

Status: Fixed » Closed (fixed)

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