Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I have added a file field to the post content type.
When creating post with file attach to it the post don't shows up in the group page.
When creating a post with no file the node shows up in the group page.
No error in the Log...
Comments
Comment #1
amirtaiar CreditAttribution: amirtaiar commentedSeems like it has something to do with the Group content visibility field I have added.
So when I change it to "use group default" instead of "Privat -..." the post shows up in the group page.
Obviously the user that add the post is a member in the group!
Comment #2
Topcheese CreditAttribution: Topcheese commentedHi, I'm not sure it means anything, but I wonder if the Private file system path could have something to do with it? It seems like you should still get an error though.
Administration » Configuration » Media
Comment #3
jpontani CreditAttribution: jpontani commentedGroup content visibility will definitely decide whether the post is displayed or not. If it is set to private then users need permission to see private nodes. Otherwise it will show nothing if the user has no permissions.
Comment #4
Topcheese CreditAttribution: Topcheese commented@jpontani, I was thinking that too, but I thought it was only the file that was not showing up.
Edit: I forgot that probably means that you have to set the permissions for the file field in order for it to show up. Duh.
Comment #5
amirtaiar CreditAttribution: amirtaiar commentedI guess you didn't really understand me well:
- The file field has permissions set so that the authenticate user can view/edit.
- The post isn;t publish in the group page when uploading an image and set the node to Private.
The file configuration set correctly.
Comment #6
Topcheese CreditAttribution: Topcheese commentedYes I'm not sure what I was thinking. #3 is the correct answer. I will play around with it later on today. Just to be sure do you mean admin/config/group/permissions/node/group, or did you override the default settings here group/node/3/admin/permissions?
Comment #7
amirtaiar CreditAttribution: amirtaiar commented#3 isn't the answer since post can be viewed after saving' though he is not part of the group.
I am using the default admin/config/group/permissions/node/group permissions for now.
Comment #8
Topcheese CreditAttribution: Topcheese commentedYeah, it looks like I'm not going to be much help. Since there is no error it seems like a permission problem or there could be an issue.
Comment #9
lsolesen CreditAttribution: lsolesen commentedSeems to have an accepted answer, so setting to fixed.