strapi / community-content

Contribute and collaborate on educational content for the Strapi Community
https://strapi.io/write-for-the-community
572 stars 404 forks source link

Building a hidden Posts feature in Astro using the new Strapi v5 Drafts & Publish feature #1523

Open noahflk opened 3 weeks ago

noahflk commented 3 weeks ago

What is your article idea?

This article will be a tutorial and showcase of the new Strapi V5 Drafts & Publish feature.

We will build a simple blog in Astro where you can publish hidden draft posts that aren't publicly accessible. You can use this to present upcoming blog posts to your fellow team members for review directly on your blog - before they're published.

Sections

What are the objectives of your article?

Promoting the Strapi v5 Release with the new Drafts & Publish feature and show how you could use it in an Astro Strapi blog.

What is your expertise as a developer or writer?

Intermediate

What type of post is this?

Tutorial

Terms & Conditions

Theodore-Kelechukwu-Onyejiaku commented 3 weeks ago

Hi @noahflk ,

It is great you want to use the Strapi 5 draft and publish feature but I am not sure what you mean by hidden post features. What are we building?

noahflk commented 3 weeks ago

@Theodore-Kelechukwu-Onyejiaku absolutely:

The draft posts are not shown in the main list of blog posts. However, they can be accessed directly if you know the URL of the post. When viewed, they will display a badge indicating that the post is a draft.

The idea behind this is that you can easily share new draft posts with your team for internal review. They won't be publicly accessible, but you can still view them within the actual website.

Theodore-Kelechukwu-Onyejiaku commented 3 weeks ago

This sounds interesting! Meaning that posts that are drafts and published will be gotten using the status and published query?

Is there a better title you might suggest other than "Building a hidden posts feature in Astro..."?

Please let me know. Thank you.

noahflk commented 3 weeks ago

@Theodore-Kelechukwu-Onyejiaku

This sounds interesting! Meaning that posts that are drafts and published will be gotten using the status and published query?

Yes exactly!

Is there a better title you might suggest other than "Building a hidden posts feature in Astro..."?

This sounds good to me. Should I get started?

Theodore-Kelechukwu-Onyejiaku commented 3 weeks ago

Please suggest a better title.

Theodore-Kelechukwu-Onyejiaku commented 3 weeks ago

How about "Build a note keeper with Strapi Draft and Publish"?

Or do you have a better suggestion please?

noahflk commented 2 weeks ago

What about "Building a Blog Post Preview feature with Strapi Draft and Publish"

I think the blogging aspect works a bit better as an example. What do you think?

@Theodore-Kelechukwu-Onyejiaku

Theodore-Kelechukwu-Onyejiaku commented 2 weeks ago

Please proceed. Thank you!

Depending on the depth and effort, we will make this intermediate.

noahflk commented 1 week ago

Hello @Theodore-Kelechukwu-Onyejiaku here is my draft: https://hackmd.io/@noahflk/S1NMXwN30