question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support future publish date

See original GitHub issue

Currently, SimpleContent assumes two states: draft posts and publish now. In the NewPost method of cloudscribe.SimpleContent.MetaWeblogService, if publish == true, the pubDate is reset to DateTime.UtcNow. The problem is that we are overriding the publish date with now as opposed to using the value being passed in.

My proposed solution is the following: Update this method to continue setting IsPublished to true, but not listing it if using a role other than an administrator or blog editor. So, RSS and typical lists won’t have it until the time is met. I may need a list of roles that should have this view. If there’s already a role checker built in, please let me know.

Generally speaking, we shouldn’t worry about date checking as a blog editor should be allowed to back date a post.

@joeaudette If you agree, I’ll update accordingly.

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
joeaudettecommented, Oct 23, 2018

@jasongaylord I see the problem and fixing it now, will publish updated nugets shortly.

Recently we introduced content history and we changed the implementation of draft vs publish and at that time we did not correctly update the metaweblog service to account for the changes.

I also found another bug when using NoDb, from the web we are using the slug as the id because that makes nicer file names on disk. But with posts created in OLW, it sets the post id to a guid, and it expects to be able to retrieve it using that guid. So I had to fix the NoDb storage code to leave the id alone if it is already populated instead of assuming we need to populate it when creating new posts.

0reactions
joeaudettecommented, Oct 25, 2018

@jasongaylord nice to see your blog running on cloudscribe, good job with the design too!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Future publishing
You can set up future publishing for products, collections, blog posts, and pages. Your online store publishes the content at the dates and...
Read more >
How to schedule a future publish date for website pages
Update your web page · Click the arrow next to the green Publish button · Select the Date and Time you would like...
Read more >
Set future publish and rollback dates in Classic CMS - Support
You can set future dates and times to publish pages and/or automatically rollback changes. You need a role of ISC_ContentAdmin, ISC_Admin, ...
Read more >
Schedule your page content to publish at a future date with ...
Click the Scheduled button at the top of the editor and select "View Scheduling"
Read more >
Scheduling a group of articles for publishing on a future date
We are looking at the most efficient way to prepare a group of Knowledge articles for a future publish date.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found