Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

page dates #1009

Open
tablatronix opened this Issue Feb 7, 2015 · 2 comments

Comments

Projects
None yet
1 participant
Owner

tablatronix commented Feb 7, 2015

Moving on to dates

  • Create Date
  • Modified Date
  • Publish Date deferred
  • Un-Publish Date deferred

We already have pubDate, so how do we want to handle this ?
Right now pubdate is moddate.

I would like to avoid doing upgrade conversions, so i say we just leave as is, and let others be empty and possibly use pubdate as other dates until a page is edited.

So rules would be as follows for missing xml nodes.

Reading in pages,
we will populate these in cache and data_index using date field function getters
Create Date - use pubDate
Modified Date - use pubDate
Un-Publish Date - empty

// get  page published date logic, tentative
getPubDate(){
  Get the date for a page, backward compatible with 3.3.x in which pubdate is also create date
  if(!$createDate) $createDate = $pubdate;
  if(!$modDate) $modDate = $pubdate;  
}

Editing a Page, pre,populate form
Create Date - use pubDate or empty
Modified Date - use current date
Un-Publish Date - empty
Publish Date - pubDate or current date

Actions
how do we handle stuff on these specific actions
Unpublishing a page - remove publishdate
Restoring a back up - do nothing
Clone a page - update create/mod date on new page
#506

@tablatronix tablatronix added the Feature label Feb 7, 2015

@tablatronix tablatronix added this to the v3.4.0 milestone Feb 7, 2015

Owner

tablatronix commented Feb 7, 2015

This might cause some confusion with publishing drafts.

We really want to use publish for public accessibility, and nothing to do with drafts.
now if someone wants to auto publish drafts then that should be a plugin

I have mentioned this before , we might have to differentiate publish draft and publish public

Owner

tablatronix commented Jul 8, 2015

I will add mod and create dates, publishing will be deferred until we have a concise solution for either using drafts as publishing, or using public flags for publishing. Or solutions to make this a plugin, I see some chance for incompatibility with plugins that don't respect these dates and reveal unpublished pages somewhere.

I think page availability simplifies this process, using a start and end date and gives us a solution until we allow drafts without a published page to exist, ( which we do not atm )

@tablatronix tablatronix added the Deferred label Jun 1, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment