Currently openpublish does fine work presenting the creation date of nodes. However, in the publishing world, you might want end-users to see a date other than the actual node creation date.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Grayside’s picture

The attached patch uses the publication_date module which does a minimal addition of a published field to the existing node structure. It will default to creation date for existing nodes upon save or node_load(). When you finally publish a node (using core status) it will update the published date if not already set. There is an input form with the creation date form to manually set the date, provided by a patch.

This mechanism is added by the new openpublish_date feature, which is an optional module.

Additional todos before it is ready:

  • Update all existing, published nodes to have published dates where they need them.
  • Possibly upstream, favor the use of publication date in the core author & date byline.
  • In all suitable views, switch to published date. Current the view that powers the article byline has been updated, but no others.
Tran’s picture

Hi
I installed the publication date module a few weeks ago and I can't make the date appear.
In fact, even when I turn on author/creation date in content types, I can't get those to appear either. Is there another way to turn display settings off and on?

Grayside’s picture

Out of the box, OpenPublish won't show the Publication date. The patch in #1 introduces a new module that integrates publication date with OpenPublish to make the published date appear in the byline.

Grayside’s picture

Status: Active » Needs work
FileSize
22.44 KB

Updated as the previously needed patch was committed. The new patch provides entity property integration which is used for Search API integration.

techninja’s picture

Update patch to include jstoller's patch for various fixes in publication_date from #2094395: Allow other modules to alter the publication date

techninja’s picture

Apparently the two patches in queue for this don't like each other, so I've broken them out into a sandbox module, and updated the patch yet again.