Skip to content
D
Documentation

Create and edit articles

task
4 min readUpdated

An article is the content you write or revise in Conduit. Use the editor to create a new article or to change an existing article. A slug identifies an existing article in its route.

If you need to…Go to
Create an articleEnter and publish an article
Change an existing articleHandle create and edit variations
Find an article before opening itFind articles
Read or manage the article after publishingRead and manage an article
Review article terminologyBasic terminology

Before you start

Have the article information ready before you open the editor.

Prerequisites

What to have readyWhy it matters
The choice between a new article and an existing articleIt determines which editor route you open.
The article slug when changing an existing articleIt identifies the article to load.
The title, description, body text, and tagsThey are the values you enter in the editor.

Open the editor

The editor is the form where you enter or revise an article.

Steps

  1. Choose the route that matches your task:

    If you need to…Open
    Create a new articleThe editor route without a slug
    Edit an existing articleThe editor route with the article slug
  2. Open the selected route.

Result: The editor opens. A new article starts with empty article fields; an existing article loads the article identified by its slug.

Understand the editor

The editor contains four article inputs, a tag area, and one publishing control.

What you enter or useControl or areaWhat it does
Article titleArticle TitleAccepts the article title.
Short descriptionWhat's this article about?Accepts the article description.
Article contentWrite your article (in markdown)Accepts the article body in markdown.
TagsEnter tagsAccepts a tag before you add it to the tag list.
Existing tagsTag text and its close iconDisplays the tags already added and lets you remove one.
Submit the articlePublish ArticleSends a new article or an edit.

The editor does not show separate field labels or required markers. It uses the text inside the inputs to identify them. No separate save or update control is used.

Enter and publish an article

Use this procedure for both a new article and an existing article. The route you opened determines whether Publish Article creates an article or updates the article identified by the route slug.

Prerequisites

  • The editor is open.
  • You have the title, description, body, and tags for the article.

Steps

  1. In Article Title, enter the article title.
  2. In What's this article about?, enter the article description.
  3. In Write your article (in markdown), enter the article body.
  4. In Enter tags, enter a tag.
  5. Press Enter to add the tag to the tag list.
  6. Repeat the tag entry and Enter action for each tag you want to add.
  7. For a tag you want to remove, select its close icon.
  8. Select Publish Article.

Result: The article submission is made. A new article uses the create path; an existing article uses the update path.

Handle create and edit variations

The editor uses the same fields and Publish Article control for both tasks; the route decides which article operation is submitted.

Prerequisites

  • The editor is open.

Steps

  1. Choose the submission path that matches the article:

    If you opened…Publish Article submits…
    The editor route without a slugA new article.
    The editor route with the article slugAn update for the article identified by that slug.
  2. Select Publish Article.

Result: The editor submits the create or update operation selected by the route.

When submission goes wrong

Returned validation or API errors appear in the editor's error list. The list shows the returned field name and value.

The submission error message is:

No fixed message is declared. The shared error list renders each returned error as <key> <value>.

What you seeWhat it meansWhat to do
A returned field name and value in the error listThe submission has a validation or API problem associated with that field.Correct the information named by the returned entry, then select Publish Article again.

No fixed success-confirmation message appears after submission. Use the resulting article route as the next place to continue.

After publishing

After submission, the application redirects to the article route for the submitted article.

Open Read and manage an article to continue with that article. Use Find articles when you need to locate an article from the article lists. For the wider article workflow, open Articles overview.

Result: The article route is the next destination after submission.

Was this page helpful?

Download as PDF
Create and edit articles — Conduit (React)