Problem

When a Session node is create it is unpublished by default. Users with the necessary permissions can then change the status of the session based on whether the session has been declined, accepted, featured, etc. Sessions which have been marked as "accepted" or "featured" don't display in any of the views unless their publish state is also updated to "published".

Proposed Solution

It would be great if Session nodes were published automatically when their status is changed to "accepted" or "featured". This could be accomplished with a rule.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

genjohnson’s picture

Patch coming.

genjohnson’s picture

Here's a patch. A sessions which have been marked as "accepted" or "featured" should be published when the node is saved.

fullerja’s picture

Status: Active » Reviewed & tested by the community

Works on both the Accepted and the Featured choices.

japerry’s picture

Status: Reviewed & tested by the community » Needs review

Jason was talking about perhaps keeping the publish rule in code so people cannot alter the feature. I'm okay with making this a rule, but I'd like some opinions on if this functionality should be alterable or not.

genjohnson’s picture

I can't think of a use case where I would want accepted sessions to be unpublished, so I'm ok with this functionality not being alterable.

mrconnerton’s picture

Status: Needs review » Reviewed & tested by the community

I think we need to keep this flexible as a rule. I've done one conference for a non-profit higher ed group that wanted to be able to moderate the sessions, but nothing was actually published until a few months later. In this case they would want the ability to disable this rule.

I vote we put this back to RTBC and once it is commited we add a documentation page about it.

mrconnerton’s picture

Status: Reviewed & tested by the community » Needs work

rerolling rule and adding update script to revert the feature

mrconnerton’s picture

Status: Needs work » Needs review
FileSize
2.47 KB
mrconnerton’s picture

new line at end of .install

mrconnerton’s picture

Issue tags: +SprintWeekend2015
japerry’s picture

Issue tags: +cod 7.x-1.0 radar