Hi,
All nodes submitted by users first go into moderation http://drupal.org/project/modr8, so are not published until a moderator approves the article, job, etc.
The state of the node is 'not published' .. is it possible that an activity records only if the node is in state 'published' please?
Look most forward to any reply, and thank you for your tremendous module :)
Lilian
Comments
Comment #1
liliplanet commentedMy bad :) In the view if you select (Node) Node: Published Yes activity will only publish when set as 'Yes'.
Comment #2
Scott Reynolds commentedWhile thats true, that prevents any non-node activities from being displayed.
Comment #3
liliplanet commentedYes, that was a mistake on my part .. only node related activities will display if 'node state is published'. No other activity will show ..
Comment #4
sarhugo commentedSubscribe
Comment #5
mindaugasd commentedsubscribe
Comment #6
mindaugasd commentedI found the way. You can use Views OR module (http://drupal.org/project/views_or) :)
Comment #7
Scott Reynolds commentedThis is actually pretty involved, as the activity record should be unpublished if the user is blocked. And for comments, as sort of an extreme case, the activity should be unpublished if the user is block OR the node is unpublished OR the comment is unpublished. So its an interesting chain.
I just worked on it for my Activity Drupal 7 port: http://github.com/SupermanScott/Activity/commit/4e477350cbede2ccea6011f3...
It has the advantage of being able to call the parent::isPublished() and chain it that way.
Comment #8
liliplanet commentedWonderful Scott, but perhaps any change for Drupal 6? Thank you :)
Comment #9
pribeh commentedhttp://drupal.org/node/582230 related or duplicate
Comment #10
Scott Reynolds commentedYa this is a dup: #582230: Add in publish/unpublish support per activity and it has now been committed.
Comment #11
pribeh commentedAmazing.
Comment #12
liliplanet commentedBeautiful ! thank you so much !