austintoddj / canvas

Publishing on your own terms
http://trycanvas.app
MIT License
3.24k stars 519 forks source link

Ability to create Page #1325

Closed msamgan closed 11 months ago

msamgan commented 1 year ago

Is your feature request related to a problem? Please describe.

The majority of developers like to have pages on there blogs like About, Uses, etc. We need pages in canvas.

Describe the solution you'd like

Ability to create page.

Describe alternatives you've considered

NA

Additional context

No response

Validations

austintoddj commented 11 months ago

Hi @msamgan - While Canvas does the heavy-lifting of blogs & publications in the backend, it's de-coupled from how you choose to display things on the frontend. I don't disagree that most developers would find use with the pages you mentioned. Canvas does provide a basic frontend interface with the canvas:ui Artisan command, so any changes you'd like to see should likely go there. I'd be more than happy to take a look at a pull request if you create one.

msamgan commented 11 months ago

Hi Austin,

I am working on the PR for this feature. can you please tell me what your preference is?

Approach one: Adding a new table "canvas_pages"

Pros:

Cons

Approach two: Adding a new column "type" enum ("post", "page") with default "post" in the canvas_posts table (WordPress approach).

Pros:

Cons

please let me know, what is your verdict on this.