Closed (fixed)
Project:
Drupal Commons
Component:
Code
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
17 Dec 2012 at 23:29 UTC
Updated:
4 Mar 2013 at 16:50 UTC
Both currently use "There are no results." Let's provide friendlier text.
Comments
Comment #1
lisarex commentedHow about "Nothing to see here yet!"
We could even prompt them to create some content.
Comment #2
siva_epari commented+1 "Prompt to create some content"
Comment #3
ezra-g commentedBumping priority to "major" so we can address this before 3.0.
Comment #4
lisarex commentedIt 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."
Comment #5
mmilano commentedThere'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:
Comment #6
blacklabel_tom commented+1 for #4
Comment #7
Topcheese commented+1 for #5
Comment #8
rosemeria commented+1 for #4
Comment #9
autolyst commented+1 for 5 .... now we are tied
Comment #10
blacklabel_tom commentedWe need a tie breaker!
Comment #11
lisarex commentedHa! Let's go with #5 since it's a little more elegant.
The full list is based on the prototype
Screenshot from prototype
http://invis.io/UHBT1DYX
Comment #12
mmilano commentedI 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.
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?
Comment #13
Topcheese commentedWell 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
Comment #14
ezra-g commentedI 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...