Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Feature Request]: convert posts to pages #1635

Open
atomGit opened this issue Aug 25, 2024 · 3 comments
Open

[Feature Request]: convert posts to pages #1635

atomGit opened this issue Aug 25, 2024 · 3 comments

Comments

@atomGit
Copy link

atomGit commented Aug 25, 2024

Feature Description

the pages feature is welcome, however that probably leaves a lot of people with a lot of posts that they might want to convert to pages with no apparent convenient way to do so

this would also be useful in the future when someone writes a post and later wants to convert it to a page or visa-versa

@collideous
Copy link

collideous commented Aug 26, 2024

Here’s how I moved posts to pages.

  • Before you start, make a backup of your db.sqlite file, or better yet your whole input folder. If you break something, you'll have that backup.
  • Open Publii and go through all the posts that you intend to convert to pages. Remove all tags you may have given them.
  • Open db.sqlite in DB Browser for SQLite or any other program you may have to edit SQLite database files.
  • In DB Browser click the “Browse Data” tab and select the “posts” table.
  • Change the “published” status to “published,is-page” for any post you want to change to a page.
  • Save and close the database.

If your posts were in a menu, you’ll have to delete and recreate those menu items.
If you want to arrange your pages hierarchically, do all that in Publii.
If you linked to such posts in other posts, you'll have to fix these links.

@bjazmoore
Copy link

I second the need for an easy way to convert posts to pages and back the other way.

@raramuridesign
Copy link

Adding a convert option would be super useful. +1 for this.

@collideous suggestion is great for the technical users. But not the non-technical
Just a note on the menu - there is no need to remove the menu, simply edit, choose page and update to the new item and done.

M.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants