The document content type is promoted to the frontpage by default.
Patch follows.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

BarisW’s picture

Status: Active » Needs review
FileSize
420 bytes
ezra-g’s picture

Status: Needs review » Needs work

Thanks for the patch! Can you provide an upgrade path that updates this value for upgrading sites?

BarisW’s picture

Hi Ezra,

sure, but do we want that? What if people want their Documents on the frontpage? A feature revert sets the default state back to non-promoted, but leaves current nodes untouched. Do you want me to write a script that updates existing document nodes?

ezra-g’s picture

The general practice in Commons is to revert all exportable components to their defaults if we make changes to those exportables in the Commons codebase.

The assumption is that any site-specific changes to those defaults are exported in code, meaning a features-revert won't wipe out the site-specific settings.

BarisW’s picture

Status: Needs work » Needs review
FileSize
972 bytes

Valid assumption (on my side). Patch attached.

Devin Carlson’s picture

Status: Needs review » Reviewed & tested by the community

The patch in #5 applied cleanly and stopped Document nodes from being promoted to the front page by default.

Tested by installing commons, checking the publishing options for Documents, applying the patch and running the included update function and finally rechecking the publishing options for Documents.

Devin Carlson’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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