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

Rename folders #21

Open
Jamiewarb opened this issue Apr 19, 2024 · 2 comments
Open

Rename folders #21

Jamiewarb opened this issue Apr 19, 2024 · 2 comments

Comments

@Jamiewarb
Copy link
Contributor

I was asked about renaming whole folders in the Pages tool, rather than going into each document and changing the pathname manually.

I couldn't see an option for this, so I wanted to float the idea over and see if it's something you'd be interested in?

Happy to discuss an initial implementation plan and then open a PR with it, if it's something you'd like included

@Jamiewarb Jamiewarb changed the title Rename whole folders Rename entire folders Apr 19, 2024
@Jamiewarb Jamiewarb changed the title Rename entire folders Rename folders Apr 19, 2024
@siffogh
Copy link
Contributor

siffogh commented Apr 19, 2024

@Jamiewarb thanks for opening this. It's definitely helpful and I'm very curious to see your initial implementation.
Could you first share more details on your solution? E.g. Renaming a folder means changing the pathname field of all page documents inside of it, at all levels. It seems pretty dangerous to publish the change directly, so would you show a popup for confirmation?

@Jamiewarb
Copy link
Contributor Author

Jamiewarb commented Apr 19, 2024

Yeah if you're interested then I can write up some initial thoughts on implementation. Agree we need to be clear on the impact and ensure it can't happen accidentally

We'd likely also need to change the slug of both the published and the draft versions

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

2 participants