quarkusio / quarkus-web-lab

CMS with a Markdown Editor and comments
Apache License 2.0
6 stars 12 forks source link

Add picture to the update (CMS) #44

Closed mcruzdev closed 2 months ago

mcruzdev commented 2 months ago

Actually in the edit step, we do not edit the picture.

    // ...

    blogEntry.title = title;
    blogEntry.content = content;
    blogEntry.published = published;
    blogEntry.slug = Slug.toSlug(title);
    // save is automatic for managed entities

    // Now that it's saved, redirect to the same editor with updated data
    editBlogEntry(id);
}

I think we need to add the picture for updating:

        blogEntry.title = title;
        blogEntry.content = content;
        blogEntry.published = published;
        blogEntry.picture = picture;
        blogEntry.slug = Slug.toSlug(title);

        editBlogEntry(id);
ia3andy commented 2 months ago

Awesome thanks!!

ia3andy commented 2 months ago

@mcruzdev you need to add the PR on this repo